#[non_exhaustive]pub struct AppserviceUserIdentity<'a> {
pub user_id: Option<&'a UserId>,
pub device_id: Option<&'a DeviceId>,
}Available on crate feature
api only.Expand description
Data to assert the identity of an appservice virtual user.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.user_id: Option<&'a UserId>The ID of the virtual user.
If this is not set, the user implied by the sender_localpart property of the registration
will be used by the server.
device_id: Option<&'a DeviceId>The ID of a specific device belonging to the virtual user.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for AppserviceUserIdentity<'a>
impl<'a> Clone for AppserviceUserIdentity<'a>
Source§fn clone(&self) -> AppserviceUserIdentity<'a>
fn clone(&self) -> AppserviceUserIdentity<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for AppserviceUserIdentity<'a>
impl<'a> Debug for AppserviceUserIdentity<'a>
Source§impl<'a> Default for AppserviceUserIdentity<'a>
impl<'a> Default for AppserviceUserIdentity<'a>
Source§fn default() -> AppserviceUserIdentity<'a>
fn default() -> AppserviceUserIdentity<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> Serialize for AppserviceUserIdentity<'a>
impl<'a> Serialize for AppserviceUserIdentity<'a>
impl<'a> Copy for AppserviceUserIdentity<'a>
Auto Trait Implementations§
impl<'a> Freeze for AppserviceUserIdentity<'a>
impl<'a> RefUnwindSafe for AppserviceUserIdentity<'a>
impl<'a> Send for AppserviceUserIdentity<'a>
impl<'a> Sync for AppserviceUserIdentity<'a>
impl<'a> Unpin for AppserviceUserIdentity<'a>
impl<'a> UnwindSafe for AppserviceUserIdentity<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more