pub enum LedgerMessageType {
Transfer {
from: String,
to: String,
amount: u64,
nonce: u64,
public_key_pem: String,
signature: String,
},
}Variants§
Transfer
Trait Implementations§
Source§impl Clone for LedgerMessageType
impl Clone for LedgerMessageType
Source§fn clone(&self) -> LedgerMessageType
fn clone(&self) -> LedgerMessageType
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 LedgerMessageType
impl Debug for LedgerMessageType
Source§impl<'de> Deserialize<'de> for LedgerMessageType
impl<'de> Deserialize<'de> for LedgerMessageType
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
Auto Trait Implementations§
impl Freeze for LedgerMessageType
impl RefUnwindSafe for LedgerMessageType
impl Send for LedgerMessageType
impl Sync for LedgerMessageType
impl Unpin for LedgerMessageType
impl UnsafeUnpin for LedgerMessageType
impl UnwindSafe for LedgerMessageType
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