Struct cryptoballot::VotingEndTransaction [−][src]
pub struct VotingEndTransaction { pub id: Identifier, pub election: Identifier, pub authority_public_key: PublicKey, }
Expand description
Transaction 7: VotingEnd
Fields
id: Identifier
election: Identifier
Implementations
impl VotingEndTransaction
[src]
impl VotingEndTransaction
[src]pub fn new(election: Identifier, authority_public_key: PublicKey) -> Self
[src]
pub fn new(election: Identifier, authority_public_key: PublicKey) -> Self
[src]Create a new DecryptionTransaction with the decrypted vote
Trait Implementations
impl AsRef<VotingEndTransaction> for SignedTransaction
[src]
impl AsRef<VotingEndTransaction> for SignedTransaction
[src]fn as_ref(&self) -> &VotingEndTransaction
[src]
fn as_ref(&self) -> &VotingEndTransaction
[src]Performs the conversion.
impl Clone for VotingEndTransaction
[src]
impl Clone for VotingEndTransaction
[src]fn clone(&self) -> VotingEndTransaction
[src]
fn clone(&self) -> VotingEndTransaction
[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 CryptoBallotTransaction for VotingEndTransaction
[src]
impl CryptoBallotTransaction for VotingEndTransaction
[src]fn validate_tx<S: Store>(&self, store: &S) -> Result<(), ValidationError>
[src]
fn validate_tx<S: Store>(&self, store: &S) -> Result<(), ValidationError>
[src]Validate the transaction
The validation does the following:
- Validates that this transaction has been signed by a valid election authority
fn id(&self) -> Identifier
[src]
fn id(&self) -> Identifier
[src]Get the transaction ID
fn election_id(&self) -> Identifier
[src]
fn election_id(&self) -> Identifier
[src]Get the transaction election ID
fn tx_type() -> TransactionType
[src]
fn tx_type() -> TransactionType
[src]Get the transaction Type
impl<'de> Deserialize<'de> for VotingEndTransaction
[src]
impl<'de> Deserialize<'de> for VotingEndTransaction
[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 From<SignedTransaction> for VotingEndTransaction
[src]
impl From<SignedTransaction> for VotingEndTransaction
[src]fn from(tx: SignedTransaction) -> Self
[src]
fn from(tx: SignedTransaction) -> Self
[src]Performs the conversion.
impl Serialize for VotingEndTransaction
[src]
impl Serialize for VotingEndTransaction
[src]Auto Trait Implementations
impl RefUnwindSafe for VotingEndTransaction
impl Send for VotingEndTransaction
impl Sync for VotingEndTransaction
impl Unpin for VotingEndTransaction
impl UnwindSafe for VotingEndTransaction
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 = T
The 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>,