pub enum ProposalChallengeInfo {
Simple(ChallengeInfo),
CommunityChoice(ChallengeInfo),
}
Variants§
Simple(ChallengeInfo)
CommunityChoice(ChallengeInfo)
Trait Implementations§
source§impl Clone for ProposalChallengeInfo
impl Clone for ProposalChallengeInfo
source§fn clone(&self) -> ProposalChallengeInfo
fn clone(&self) -> ProposalChallengeInfo
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 ProposalChallengeInfo
impl Debug for ProposalChallengeInfo
source§impl<'de> Deserialize<'de> for ProposalChallengeInfo
impl<'de> Deserialize<'de> for ProposalChallengeInfo
source§fn deserialize<D>(
deserializer: D
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Self, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<ProposalChallengeInfo> for SerdeProposalChallengeInfo
impl From<ProposalChallengeInfo> for SerdeProposalChallengeInfo
source§fn from(data: ProposalChallengeInfo) -> Self
fn from(data: ProposalChallengeInfo) -> Self
Converts to this type from the input type.
source§impl PartialEq<ProposalChallengeInfo> for ProposalChallengeInfo
impl PartialEq<ProposalChallengeInfo> for ProposalChallengeInfo
source§fn eq(&self, other: &ProposalChallengeInfo) -> bool
fn eq(&self, other: &ProposalChallengeInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ProposalChallengeInfo
impl Serialize for ProposalChallengeInfo
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl TryFrom<SerdeProposalChallengeInfo> for ProposalChallengeInfo
impl TryFrom<SerdeProposalChallengeInfo> for ProposalChallengeInfo
§type Error = SerdeToProposalChallengeInfoError
type Error = SerdeToProposalChallengeInfoError
The type returned in the event of a conversion error.
impl Eq for ProposalChallengeInfo
impl StructuralEq for ProposalChallengeInfo
impl StructuralPartialEq for ProposalChallengeInfo
Auto Trait Implementations§
impl RefUnwindSafe for ProposalChallengeInfo
impl Send for ProposalChallengeInfo
impl Sync for ProposalChallengeInfo
impl Unpin for ProposalChallengeInfo
impl UnwindSafe for ProposalChallengeInfo
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.