[][src]Enum safe_nd::ClientRequest

pub enum ClientRequest {
    ListAuthKeysAndVersion,
    InsAuthKey {
        key: PublicKey,
        version: u64,
        permissions: AppPermissions,
    },
    DelAuthKey {
        key: PublicKey,
        version: u64,
    },
}

Client (Owner) request that is sent to vaults.

Variants

ListAuthKeysAndVersion

List authorised keys and version stored by Elders.

InsAuthKey

Insert an authorised key (for an app, user, etc.).

Fields of InsAuthKey

key: PublicKey

Authorised key to be inserted

version: u64

Incremented version

permissions: AppPermissions

Permissions

DelAuthKey

Delete an authorised key.

Fields of DelAuthKey

key: PublicKey

Authorised key to be deleted

version: u64

Incremented version

Methods

impl ClientRequest[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 ClientRequest[src]

impl Debug for ClientRequest[src]

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

impl Eq for ClientRequest[src]

impl Hash for ClientRequest[src]

impl Ord for ClientRequest[src]

impl PartialEq<ClientRequest> for ClientRequest[src]

impl PartialOrd<ClientRequest> for ClientRequest[src]

impl Serialize for ClientRequest[src]

impl StructuralEq for ClientRequest[src]

impl StructuralPartialEq for ClientRequest[src]

Auto Trait Implementations

Blanket Implementations

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> 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.