pub struct Transaction {
pub description: String,
pub commands: Vec<Command>,
pub proposed_by: Principal,
pub proposed_at: u64,
pub status: TransactionStatus,
pub approved: HashSet<Principal>,
pub rejected: HashSet<Principal>,
pub transaction_id: usize,
}Fields§
§description: StringA description for the transaction, which can include a longer text, 512 character limit.
commands: Vec<Command>The commands that should be executed once the proposal is voted on.
proposed_by: PrincipalThe user who created this transaction.
proposed_at: u64The unix timestamp at which this transaction was created.
status: TransactionStatusThe status of this transaction.
approved: HashSet<Principal>All those in favour of this transaction.
rejected: HashSet<Principal>All those against this transaction.
transaction_id: usizeThe ID of the transaction
Trait Implementations§
Source§impl CandidType for Transaction
impl CandidType for Transaction
Source§impl Clone for Transaction
impl Clone for Transaction
Source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
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 Transaction
impl Debug for Transaction
Source§impl<'de> Deserialize<'de> for Transaction
impl<'de> Deserialize<'de> for Transaction
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 From<Transaction> for TransactionBrief
impl From<Transaction> for TransactionBrief
Source§fn from(transaction: Transaction) -> Self
fn from(transaction: Transaction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
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