pub struct RegisterUser {
pub schema_version: u16,
pub profile: UserProfile,
pub credential: AuthCredential,
}Expand description
Register a fresh User with the supplied profile and credential.
Fields§
§schema_version: u16Wire-level schema version tag.
profile: UserProfileProfile Component contents.
credential: AuthCredentialInitial credential.
Trait Implementations§
Source§impl ActionCompute for RegisterUser
impl ActionCompute for RegisterUser
Source§impl ActionCompute for RegisterUser
impl ActionCompute for RegisterUser
Source§fn compute<'i>(&self, ctx: &mut ActionContext<'i>) -> Result<(), ActionError>
fn compute<'i>(&self, ctx: &mut ActionContext<'i>) -> Result<(), ActionError>
Run the compute body. Emit events via
ctx.emit_event, derive new
ids via ctx.next_id, and return Err(ActionError::...) to reject.Source§impl ActionDeriv for RegisterUser
impl ActionDeriv for RegisterUser
Source§impl ArkheAction for RegisterUser
impl ArkheAction for RegisterUser
Source§const SCHEMA_VERSION: u16 = 1u16
const SCHEMA_VERSION: u16 = 1u16
Monotone schema version — bump rules identical to
ArkheComponent.Source§const IDEMPOTENT: bool = false
const IDEMPOTENT: bool = false
Opt-in idempotency flag.
true iff the deriving struct carries an
idempotency_key: Option<[u8; 16]> field (validated at derive time).
false by default — non-idempotent Actions are still legal.Source§impl Clone for RegisterUser
impl Clone for RegisterUser
Source§fn clone(&self) -> RegisterUser
fn clone(&self) -> RegisterUser
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 RegisterUser
impl Debug for RegisterUser
Source§impl<'de> Deserialize<'de> for RegisterUser
impl<'de> Deserialize<'de> for RegisterUser
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 RegisterUser
impl PartialEq for RegisterUser
Source§fn eq(&self, other: &RegisterUser) -> bool
fn eq(&self, other: &RegisterUser) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RegisterUser
impl Serialize for RegisterUser
impl Eq for RegisterUser
impl Sealed for RegisterUser
impl StructuralPartialEq for RegisterUser
Auto Trait Implementations§
impl Freeze for RegisterUser
impl RefUnwindSafe for RegisterUser
impl Send for RegisterUser
impl Sync for RegisterUser
impl Unpin for RegisterUser
impl UnsafeUnpin for RegisterUser
impl UnwindSafe for RegisterUser
Blanket Implementations§
Source§impl<T> Action for Twhere
T: ActionDeriv + ActionCompute,
impl<T> Action for Twhere
T: ActionDeriv + ActionCompute,
Source§fn canonical_bytes(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn canonical_bytes(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Postcard-canonical byte encoding. See
Component::canonical_bytes for the contract; identical
shape applies here.Source§fn from_bytes(version: u32, bytes: &[u8]) -> Result<Box<Self>, DeserializeError>where
Self: Sized,
fn from_bytes(version: u32, bytes: &[u8]) -> Result<Box<Self>, DeserializeError>where
Self: Sized,
Inverse of
canonical_bytes.
SchemaVersionMismatch on unequal version.Source§fn approx_size(&self) -> usizewhere
Self: Sized,
fn approx_size(&self) -> usizewhere
Self: Sized,
Approximate byte size — defaults to encoded length.
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