[][src]Enum safe_nd::LoginPacketRequest

pub enum LoginPacketRequest {
    Create(LoginPacket),
    CreateFor {
        new_owner: PublicKey,
        amount: Coins,
        transaction_id: TransactionId,
        new_login_packet: LoginPacket,
    },
    Update(LoginPacket),
    Get(XorName),
}

LoginPacket request that is sent to vaults.

Variants

Create(LoginPacket)

Create a login packet.

CreateFor

Create a login packet for a given user and transfer some initial coins.

Fields of CreateFor

new_owner: PublicKey

The new owner of the login packet.

amount: Coins

The new balance amount in coins.

transaction_id: TransactionId

The ID of the transaction.

new_login_packet: LoginPacket

The new login packet.

Update(LoginPacket)

Update a login packet.

Get(XorName)

Get an encrypted login packet.

Implementations

impl LoginPacketRequest[src]

pub fn get_type(&self) -> Type[src]

Get the Type of this Request.

pub fn error_response(&self, error: Error) -> Response[src]

Creates a Response containing an error, with the Response variant corresponding to the Request variant.

pub fn authorisation_kind(&self) -> AuthorisationKind[src]

Returns the type of authorisation needed for the request.

pub fn dest_address(&self) -> Option<Cow<XorName>>[src]

Returns the address of the destination for request.

Trait Implementations

impl Clone for LoginPacketRequest[src]

impl Debug for LoginPacketRequest[src]

impl<'de> Deserialize<'de> for LoginPacketRequest[src]

impl Eq for LoginPacketRequest[src]

impl Hash for LoginPacketRequest[src]

impl Ord for LoginPacketRequest[src]

impl PartialEq<LoginPacketRequest> for LoginPacketRequest[src]

impl PartialOrd<LoginPacketRequest> for LoginPacketRequest[src]

impl Serialize for LoginPacketRequest[src]

impl StructuralEq for LoginPacketRequest[src]

impl StructuralPartialEq for LoginPacketRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<A> Actor for A where
    A: Clone + Ord + Hash
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Member for T where
    T: Clone + Eq + Hash
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,