Enum sn_messaging::client::TransferQuery [−][src]
pub enum TransferQuery { GetBalance(PublicKey), GetHistory { at: PublicKey, since_version: usize, }, GetStoreCost { requester: PublicKey, bytes: u64, }, }
Expand description
Token query that is sent to network.
Variants
GetBalance(PublicKey)
Get key balance.
Get key transfers since specified version.
Show fields
Get the latest cost for writing given number of bytes to network.
Implementations
Creates a QueryResponse containing an error, with the QueryResponse variant corresponding to the Request variant.
Returns the address of the destination for the query.
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TransferQuery
impl Send for TransferQuery
impl Sync for TransferQuery
impl Unpin for TransferQuery
impl UnwindSafe for TransferQuery
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V