pub struct Account { /* private fields */ }Expand description
Use this only while we don’t have Authenticator as its own app. Containing arbitrary user’s account information.
Implementations§
Source§impl Account
impl Account
Sourcepub fn new(
address: XorName,
owner: PublicKey,
data: Vec<u8>,
signature: Signature,
) -> Result<Self>
pub fn new( address: XorName, owner: PublicKey, data: Vec<u8>, signature: Signature, ) -> Result<Self>
Construct a new login packet.
Sourcepub fn size_is_valid(&self) -> bool
pub fn size_is_valid(&self) -> bool
Returns true if the size of the data is valid.
Sourcepub fn into_data_and_signature(self) -> (Vec<u8>, Signature)
pub fn into_data_and_signature(self) -> (Vec<u8>, Signature)
Convert this login packet into its data and signature.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Account
impl<'de> Deserialize<'de> for Account
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 PartialOrd for Account
impl PartialOrd for Account
impl Eq for Account
impl StructuralPartialEq for Account
Auto Trait Implementations§
impl Freeze for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more