[][src]Enum safe_nd::Response

pub enum Response {
    GetIData(Result<IData>),
    GetMData(Result<MData>),
    GetMDataShell(Result<MData>),
    GetMDataVersion(Result<u64>),
    ListMDataEntries(Result<MDataEntries>),
    ListMDataKeys(Result<BTreeSet<Vec<u8>>>),
    ListMDataValues(Result<MDataValues>),
    ListMDataUserPermissions(Result<MDataPermissionSet>),
    ListMDataPermissions(Result<BTreeMap<PublicKey, MDataPermissionSet>>),
    GetMDataValue(Result<MDataValue>),
    GetAData(Result<AData>),
    GetADataShell(Result<AData>),
    GetADataOwners(Result<ADataOwner>),
    GetADataRange(Result<ADataEntries>),
    GetADataValue(Result<Vec<u8>>),
    GetADataIndices(Result<ADataIndices>),
    GetADataLastEntry(Result<ADataEntry>),
    GetADataPermissions(Result<ADataPermissions>),
    GetPubADataUserPermissions(Result<ADataPubPermissionSet>),
    GetUnpubADataUserPermissions(Result<ADataUnpubPermissionSet>),
    GetBalance(Result<Coins>),
    Transaction(Result<Transaction>),
    GetLoginPacket(Result<(Vec<u8>, Signature)>),
    ListAuthKeysAndVersion(Result<(BTreeMap<PublicKey, AppPermissions>, u64)>),
    Mutation(Result<()>),
}

RPC responses from vaults.

Variants

GetIData(Result<IData>)

Get ImmutableData.

GetMData(Result<MData>)

Get MutableData.

GetMDataShell(Result<MData>)

Get MutableData shell.

GetMDataVersion(Result<u64>)

Get MutableData version.

ListMDataEntries(Result<MDataEntries>)

List all MutableData entries (key-value pairs).

ListMDataKeys(Result<BTreeSet<Vec<u8>>>)

List all MutableData keys.

ListMDataValues(Result<MDataValues>)

List all MutableData values.

ListMDataUserPermissions(Result<MDataPermissionSet>)

Get MutableData permissions for a user.

ListMDataPermissions(Result<BTreeMap<PublicKey, MDataPermissionSet>>)

List all MutableData permissions.

GetMDataValue(Result<MDataValue>)

Get MutableData value.

GetAData(Result<AData>)

Get AppendOnlyData.

GetADataShell(Result<AData>)

Get AppendOnlyData shell.

GetADataOwners(Result<ADataOwner>)

Get AppendOnlyData owners.

GetADataRange(Result<ADataEntries>)

Get AppendOnlyData.

GetADataValue(Result<Vec<u8>>)

Get AppendOnlyData value.

GetADataIndices(Result<ADataIndices>)

Get AppendOnlyData indices.

GetADataLastEntry(Result<ADataEntry>)

Get AppendOnlyData last entry.

GetADataPermissions(Result<ADataPermissions>)

List all AppendOnlyData permissions at the provided index.

GetPubADataUserPermissions(Result<ADataPubPermissionSet>)

Get published AppendOnlyData permissions for a user.

GetUnpubADataUserPermissions(Result<ADataUnpubPermissionSet>)

Get unpublished AppendOnlyData permissions for a user..

GetBalance(Result<Coins>)

Get coin balance.

Transaction(Result<Transaction>)

Return the result of a transaction.

GetLoginPacket(Result<(Vec<u8>, Signature)>)

Get an encrypted login packet.

ListAuthKeysAndVersion(Result<(BTreeMap<PublicKey, AppPermissions>, u64)>)

Get a list of authorised keys and the version of the auth keys container from Elders.

Mutation(Result<()>)

Return a success or failure status for a mutation operation.

Trait Implementations

impl Clone for Response[src]

impl Debug for Response[src]

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

impl Eq for Response[src]

impl Hash for Response[src]

impl Ord for Response[src]

impl PartialEq<Response> for Response[src]

impl PartialOrd<Response> for Response[src]

impl Serialize for Response[src]

impl StructuralEq for Response[src]

impl StructuralPartialEq for Response[src]

impl TryFrom<Response> for IData[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<Response> for MData[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<Response> for AData[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<Response> for ADataOwner[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<Response> for ADataEntries[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<Response> for ADataIndices[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<Response> for ADataEntry[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<Response> for ADataPermissions[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<Response> for ADataPubPermissionSet[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<Response> for ADataUnpubPermissionSet[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<Response> for Coins[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<Response> for Transaction[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<Response> for u64[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<Response> for (BTreeMap<PublicKey, AppPermissions>, u64)[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<Response> for (Vec<u8>, Signature)[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<Response> for ()[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<Response> for MDataEntries[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<Response> for BTreeSet<Vec<u8>>[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<Response> for MDataValues[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<Response> for MDataPermissionSet[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<Response> for BTreeMap<PublicKey, MDataPermissionSet>[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<Response> for MDataValue[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<Response> for Vec<u8>[src]

type Error = TryFromError

The type returned in the event of a conversion error.

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