Enum cryptoballot::TransactionType [−][src]
#[repr(u8)]
pub enum TransactionType {
Election,
KeyGenCommitment,
KeyGenShare,
KeyGenPublicKey,
EncryptionKey,
Vote,
VotingEnd,
Mix,
PartialDecryption,
Decryption,
}Expand description
A transaction type
Variants
Implementations
impl TransactionType[src]
impl TransactionType[src]Trait Implementations
impl Clone for TransactionType[src]
impl Clone for TransactionType[src]fn clone(&self) -> TransactionType[src]
fn clone(&self) -> TransactionType[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 Debug for TransactionType[src]
impl Debug for TransactionType[src]impl<'de> Deserialize<'de> for TransactionType[src]
impl<'de> Deserialize<'de> for TransactionType[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 Display for TransactionType[src]
impl Display for TransactionType[src]impl Hash for TransactionType[src]
impl Hash for TransactionType[src]impl PartialEq<TransactionType> for TransactionType[src]
impl PartialEq<TransactionType> for TransactionType[src]impl Serialize for TransactionType[src]
impl Serialize for TransactionType[src]impl TryFrom<u8> for TransactionType[src]
impl TryFrom<u8> for TransactionType[src]type Error = TryFromPrimitiveError<Self>
type Error = TryFromPrimitiveError<Self>The type returned in the event of a conversion error.
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>[src]
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>[src]Performs the conversion.
impl TryFromPrimitive for TransactionType[src]
impl TryFromPrimitive for TransactionType[src]type Primitive = u8
const NAME: &'static str[src]
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>[src]
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for TransactionType[src]
impl Eq for TransactionType[src]
impl StructuralEq for TransactionType[src]
impl StructuralPartialEq for TransactionType[src]
Auto Trait Implementations
impl RefUnwindSafe for TransactionType
impl Send for TransactionType
impl Sync for TransactionType
impl Unpin for TransactionType
impl UnwindSafe for TransactionType
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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
pub fn equivalent(&self, key: &K) -> bool[src]Compare self to key and return true if they are equal.
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>,