pub struct QuantumTransaction {
pub sender: String,
pub receiver: String,
pub amount: f64,
pub encrypted: Option<Vec<u8>>,
}
Fields§
§sender: String
§receiver: String
§amount: f64
§encrypted: Option<Vec<u8>>
Implementations§
Trait Implementations§
Source§impl Clone for QuantumTransaction
impl Clone for QuantumTransaction
Source§fn clone(&self) -> QuantumTransaction
fn clone(&self) -> QuantumTransaction
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 QuantumTransaction
impl Debug for QuantumTransaction
Source§impl<'de> Deserialize<'de> for QuantumTransaction
impl<'de> Deserialize<'de> for QuantumTransaction
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 QuantumTransaction
impl RefUnwindSafe for QuantumTransaction
impl Send for QuantumTransaction
impl Sync for QuantumTransaction
impl Unpin for QuantumTransaction
impl UnwindSafe for QuantumTransaction
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