pub enum QueryResponse {
Show 20 variants
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)>),
GetSequencePermissions(Result<SequencePermissions>),
GetReplicaKeys(Result<ReplicaPublicKeySet>),
GetBalance(Result<Money>),
GetHistory(Result<Vec<ReplicaEvent>>),
GetAccount(Result<(Vec<u8>, Signature)>),
ListAuthKeysAndVersion(Result<(BTreeMap<PublicKey, AppPermissions>, u64)>),
}Expand description
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.
GetSequencePermissions(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.
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§
Source§impl Clone for QueryResponse
impl Clone for QueryResponse
Source§fn clone(&self) -> QueryResponse
fn clone(&self) -> QueryResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueryResponse
impl Debug for QueryResponse
Source§impl<'de> Deserialize<'de> for QueryResponse
impl<'de> Deserialize<'de> for QueryResponse
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 Hash for QueryResponse
impl Hash for QueryResponse
Source§impl PartialEq for QueryResponse
impl PartialEq for QueryResponse
Source§impl Serialize for QueryResponse
impl Serialize for QueryResponse
Source§impl TryFrom<QueryResponse> for (BTreeMap<PublicKey, AppPermissions>, u64)
impl TryFrom<QueryResponse> for (BTreeMap<PublicKey, AppPermissions>, u64)
Source§type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Source§impl TryFrom<QueryResponse> for (Vec<u8>, Signature)
impl TryFrom<QueryResponse> for (Vec<u8>, Signature)
Source§type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Source§impl TryFrom<QueryResponse> for (u64, SequenceEntry)
impl TryFrom<QueryResponse> for (u64, SequenceEntry)
Source§type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Source§impl TryFrom<QueryResponse> for BTreeMap<PublicKey, MapPermissionSet>
impl TryFrom<QueryResponse> for BTreeMap<PublicKey, MapPermissionSet>
Source§type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Source§impl TryFrom<QueryResponse> for BTreeSet<Vec<u8>>
impl TryFrom<QueryResponse> for BTreeSet<Vec<u8>>
Source§type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Source§impl TryFrom<QueryResponse> for Blob
impl TryFrom<QueryResponse> for Blob
Source§type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Source§impl TryFrom<QueryResponse> for Map
impl TryFrom<QueryResponse> for Map
Source§type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Source§impl TryFrom<QueryResponse> for Sequence
impl TryFrom<QueryResponse> for Sequence
Source§type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Source§impl TryFrom<QueryResponse> for MapEntries
impl TryFrom<QueryResponse> for MapEntries
Source§type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Source§impl TryFrom<QueryResponse> for Money
impl TryFrom<QueryResponse> for Money
Source§type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Source§impl TryFrom<QueryResponse> for MapPermissionSet
impl TryFrom<QueryResponse> for MapPermissionSet
Source§type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Source§impl TryFrom<QueryResponse> for SequencePermissions
impl TryFrom<QueryResponse> for SequencePermissions
Source§type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Source§impl TryFrom<QueryResponse> for PublicKey
impl TryFrom<QueryResponse> for PublicKey
Source§type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Source§impl TryFrom<QueryResponse> for ReplicaPublicKeySet
impl TryFrom<QueryResponse> for ReplicaPublicKeySet
Source§type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Source§impl TryFrom<QueryResponse> for MapValue
impl TryFrom<QueryResponse> for MapValue
Source§type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Source§impl TryFrom<QueryResponse> for MapValues
impl TryFrom<QueryResponse> for MapValues
Source§type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Source§impl TryFrom<QueryResponse> for Vec<ReplicaEvent>
impl TryFrom<QueryResponse> for Vec<ReplicaEvent>
Source§type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Source§impl TryFrom<QueryResponse> for SequenceEntries
impl TryFrom<QueryResponse> for SequenceEntries
Source§type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
Source§impl TryFrom<QueryResponse> for u64
impl TryFrom<QueryResponse> for u64
Source§type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
impl Eq for QueryResponse
impl StructuralPartialEq for QueryResponse
Auto Trait Implementations§
impl Freeze for QueryResponse
impl RefUnwindSafe for QueryResponse
impl Send for QueryResponse
impl Sync for QueryResponse
impl Unpin for QueryResponse
impl UnwindSafe for QueryResponse
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