[][src]Enum sn_data_types::QueryResponse

pub enum QueryResponse {
    GetBlob(Result<Blob>),
    GetMap(Result<Map>),
    GetMapShell(Result<Map>),
    GetMapVersion(Result<u64>),
    ListMapEntries(Result<MapEntries>),
    ListMapKeys(Result<BTreeSet<Vec<u8>>>),
    ListMapValues(Result<MapValues>),
    ListMapUserPermissions(Result<MapPermissionSet>),
    ListMapPermissions(Result<BTreeMap<PublicKey, MapPermissionSet>>),
    GetMapValue(Result<MapValue>),
    GetSequence(Result<Sequence>),
    GetSequenceOwner(Result<PublicKey>),
    GetSequenceRange(Result<SequenceEntries>),
    GetSequenceLastEntry(Result<(u64, SequenceEntry)>),
    GetSequencePublicPolicy(Result<SequencePublicPolicy>),
    GetSequencePrivatePolicy(Result<SequencePrivatePolicy>),
    GetSequenceUserPermissions(Result<SequencePermissions>),
    GetReplicaKeys(Result<ReplicaPublicKeySet>),
    GetBalance(Result<Money>),
    GetHistory(Result<Vec<ReplicaEvent>>),
    GetStoreCost(Result<Money>),
    GetAccount(Result<(Vec<u8>, Signature)>),
    ListAuthKeysAndVersion(Result<(BTreeMap<PublicKey, AppPermissions>, u64)>),
}

Query responses from the network.

Variants

GetBlob(Result<Blob>)

Get Blob.

GetMap(Result<Map>)

Get Map.

GetMapShell(Result<Map>)

Get Map shell.

GetMapVersion(Result<u64>)

Get Map version.

ListMapEntries(Result<MapEntries>)

List all Map entries (key-value pairs).

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

List all Map keys.

ListMapValues(Result<MapValues>)

List all Map values.

ListMapUserPermissions(Result<MapPermissionSet>)

Get Map permissions for a user.

ListMapPermissions(Result<BTreeMap<PublicKey, MapPermissionSet>>)

List all Map permissions.

GetMapValue(Result<MapValue>)

Get Map value.

GetSequence(Result<Sequence>)

Get Sequence.

GetSequenceOwner(Result<PublicKey>)

Get Sequence owners.

GetSequenceRange(Result<SequenceEntries>)

Get Sequence entries from a range.

GetSequenceLastEntry(Result<(u64, SequenceEntry)>)

Get Sequence last entry.

GetSequencePublicPolicy(Result<SequencePublicPolicy>)

Get public Sequence permissions for a user.

GetSequencePrivatePolicy(Result<SequencePrivatePolicy>)

Get private Sequence permissions for a user.

GetSequenceUserPermissions(Result<SequencePermissions>)

Get Sequence permissions for a user.

GetReplicaKeys(Result<ReplicaPublicKeySet>)

Get replica keys

GetBalance(Result<Money>)

Get key balance.

GetHistory(Result<Vec<ReplicaEvent>>)

Get key transfer history.

GetStoreCost(Result<Money>)

Get Store Cost.

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

Get an encrypted account.

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

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

Trait Implementations

impl Clone for QueryResponse[src]

impl Debug for QueryResponse[src]

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

impl Eq for QueryResponse[src]

impl Hash for QueryResponse[src]

impl PartialEq<QueryResponse> for QueryResponse[src]

impl Serialize for QueryResponse[src]

impl StructuralEq for QueryResponse[src]

impl StructuralPartialEq for QueryResponse[src]

impl TryFrom<QueryResponse> for Blob[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<QueryResponse> for Map[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<QueryResponse> for PublicKey[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<QueryResponse> for SequenceEntries[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<QueryResponse> for (u64, SequenceEntry)[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<QueryResponse> for SequencePublicPolicy[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<QueryResponse> for SequencePrivatePolicy[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<QueryResponse> for SequencePermissions[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<QueryResponse> for Money[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<QueryResponse> for ReplicaPublicKeySet[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<QueryResponse> for Vec<ReplicaEvent>[src]

type Error = TryFromError

The type returned in the event of a conversion error.

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

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<QueryResponse> for u64[src]

type Error = TryFromError

The type returned in the event of a conversion error.

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

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<QueryResponse> for MapEntries[src]

type Error = TryFromError

The type returned in the event of a conversion error.

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

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<QueryResponse> for MapValues[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<QueryResponse> for MapPermissionSet[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<QueryResponse> for BTreeMap<PublicKey, MapPermissionSet>[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<QueryResponse> for MapValue[src]

type Error = TryFromError

The type returned in the event of a conversion error.

impl TryFrom<QueryResponse> for Sequence[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: 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>,