pub enum TransferCmd {
ValidateTransfer(SignedTransfer),
RegisterTransfer(DebitAgreementProof),
}Expand description
Money cmd that is sent to network.
Variants§
ValidateTransfer(SignedTransfer)
The cmd to validate a transfer.
RegisterTransfer(DebitAgreementProof)
The cmd to register the consensused transfer.
Implementations§
Source§impl TransferCmd
impl TransferCmd
Sourcepub fn error(&self, error: Error) -> CmdError
pub fn error(&self, error: Error) -> CmdError
Creates a Response containing an error, with the Response variant corresponding to the Request variant.
Returns the type of authorisation needed for the request.
Sourcepub fn dst_address(&self) -> XorName
pub fn dst_address(&self) -> XorName
Returns the address of the destination for request.
Trait Implementations§
Source§impl Clone for TransferCmd
impl Clone for TransferCmd
Source§fn clone(&self) -> TransferCmd
fn clone(&self) -> TransferCmd
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 TransferCmd
impl Debug for TransferCmd
Source§impl<'de> Deserialize<'de> for TransferCmd
impl<'de> Deserialize<'de> for TransferCmd
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 TransferCmd
impl Hash for TransferCmd
Source§impl PartialEq for TransferCmd
impl PartialEq for TransferCmd
Source§impl Serialize for TransferCmd
impl Serialize for TransferCmd
impl Eq for TransferCmd
impl StructuralPartialEq for TransferCmd
Auto Trait Implementations§
impl Freeze for TransferCmd
impl RefUnwindSafe for TransferCmd
impl Send for TransferCmd
impl Sync for TransferCmd
impl Unpin for TransferCmd
impl UnwindSafe for TransferCmd
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