Enum cryptoballot::Transaction [−][src]
pub enum Transaction {
Election(ElectionTransaction),
KeyGenCommitment(KeyGenCommitmentTransaction),
KeyGenShare(KeyGenShareTransaction),
KeyGenPublicKey(KeyGenPublicKeyTransaction),
EncryptionKey(EncryptionKeyTransaction),
Vote(VoteTransaction),
VotingEnd(VotingEndTransaction),
Mix(MixTransaction),
PartialDecryption(PartialDecryptionTransaction),
Decryption(DecryptionTransaction),
}Expand description
An unsigned transaction TODO: Implment From going for specific tx to this emum and vice versa
Variants
Election(ElectionTransaction)KeyGenCommitment(KeyGenCommitmentTransaction)KeyGenPublicKey(KeyGenPublicKeyTransaction)EncryptionKey(EncryptionKeyTransaction)Vote(VoteTransaction)VotingEnd(VotingEndTransaction)Mix(MixTransaction)PartialDecryption(PartialDecryptionTransaction)Decryption(DecryptionTransaction)Implementations
impl Transaction[src]
impl Transaction[src]pub fn transaction_type(&self) -> TransactionType[src]
pub fn transaction_type(&self) -> TransactionType[src]Get the transaction type
pub fn id(&self) -> Identifier[src]
pub fn id(&self) -> Identifier[src]Get the transaction ID
pub fn from_bytes(bytes: &[u8]) -> Result<Self, Error>[src]
pub fn validate_tx<S: Store>(&self, s: &S) -> Result<(), ValidationError>[src]
Trait Implementations
impl Clone for Transaction[src]
impl Clone for Transaction[src]fn clone(&self) -> Transaction[src]
fn clone(&self) -> Transaction[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl<'de> Deserialize<'de> for Transaction[src]
impl<'de> Deserialize<'de> for Transaction[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
impl Serialize for Transaction[src]
impl Serialize for Transaction[src]Auto Trait Implementations
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T[src]
impl<T> Pointable for T[src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,