pub struct UserBinding {
pub schema_version: u16,
pub user_id: UserId,
}Expand description
Binding from Actor to the backing User — present iff the actor is Authenticated (invariant E-actor-2).
Fields§
§schema_version: u16Wire-level schema version tag.
user_id: UserIdBacking user identity.
Trait Implementations§
Source§impl ArkheComponent for UserBinding
impl ArkheComponent for UserBinding
Source§const TYPE_CODE: u32 = 196866u32
const TYPE_CODE: u32 = 196866u32
Globally stable dispatch code within the runtime
TypeCode registry.Source§const SCHEMA_VERSION: u16 = 1u16
const SCHEMA_VERSION: u16 = 1u16
Monotone schema version. Bump on field addition (
#[serde(default)]
paired); field removal / reorder forbidden.Source§fn approx_size(&self) -> usize
fn approx_size(&self) -> usize
Approximate payload size for quota tracking. Default returns
size_of::<Self>(); override for bytes::Bytes-carrying Components.Source§impl Clone for UserBinding
impl Clone for UserBinding
Source§fn clone(&self) -> UserBinding
fn clone(&self) -> UserBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserBinding
impl Debug for UserBinding
Source§impl<'de> Deserialize<'de> for UserBinding
impl<'de> Deserialize<'de> for UserBinding
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UserBinding
impl PartialEq for UserBinding
Source§fn eq(&self, other: &UserBinding) -> bool
fn eq(&self, other: &UserBinding) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UserBinding
impl Serialize for UserBinding
impl Eq for UserBinding
impl StructuralPartialEq for UserBinding
Auto Trait Implementations§
impl Freeze for UserBinding
impl RefUnwindSafe for UserBinding
impl Send for UserBinding
impl Sync for UserBinding
impl Unpin for UserBinding
impl UnsafeUnpin for UserBinding
impl UnwindSafe for UserBinding
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