Struct jormungandr_lib::interfaces::vote::VotePrivacy
source · pub struct VotePrivacy(pub PayloadType);
Expand description
Serializable wrapper for the payload type enum.
Tuple Fields§
§0: PayloadType
Trait Implementations§
source§impl Clone for VotePrivacy
impl Clone for VotePrivacy
source§fn clone(&self) -> VotePrivacy
fn clone(&self) -> VotePrivacy
Returns a copy 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 VotePrivacy
impl Debug for VotePrivacy
source§impl<'de> Deserialize<'de> for VotePrivacy
impl<'de> Deserialize<'de> for VotePrivacy
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 Display for VotePrivacy
impl Display for VotePrivacy
source§impl From<PayloadType> for VotePrivacy
impl From<PayloadType> for VotePrivacy
source§impl From<VotePrivacy> for PayloadType
impl From<VotePrivacy> for PayloadType
source§fn from(src: VotePrivacy) -> Self
fn from(src: VotePrivacy) -> Self
Converts to this type from the input type.
source§impl FromStr for VotePrivacy
impl FromStr for VotePrivacy
source§impl Hash for VotePrivacy
impl Hash for VotePrivacy
source§impl PartialEq<VotePrivacy> for VotePrivacy
impl PartialEq<VotePrivacy> for VotePrivacy
source§fn eq(&self, other: &VotePrivacy) -> bool
fn eq(&self, other: &VotePrivacy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VotePrivacy
impl Serialize for VotePrivacy
impl Copy for VotePrivacy
impl Eq for VotePrivacy
impl StructuralEq for VotePrivacy
impl StructuralPartialEq for VotePrivacy
Auto Trait Implementations§
impl RefUnwindSafe for VotePrivacy
impl Send for VotePrivacy
impl Sync for VotePrivacy
impl Unpin for VotePrivacy
impl UnwindSafe for VotePrivacy
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