#[non_exhaustive]pub enum CampaignStatus {
Open,
Closed {
by: String,
at: u64,
},
}Expand description
Where a campaign stands.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for CampaignStatus
impl Clone for CampaignStatus
Source§impl Debug for CampaignStatus
impl Debug for CampaignStatus
Source§impl<'de> Deserialize<'de> for CampaignStatus
impl<'de> Deserialize<'de> for CampaignStatus
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 PartialEq for CampaignStatus
impl PartialEq for CampaignStatus
Source§impl Serialize for CampaignStatus
impl Serialize for CampaignStatus
impl StructuralPartialEq for CampaignStatus
Auto Trait Implementations§
impl Forget for CampaignStatus
impl Freeze for CampaignStatus
impl Move for CampaignStatus
impl RefUnwindSafe for CampaignStatus
impl Send for CampaignStatuswhere
RawVecInner: Send,
impl Sync for CampaignStatuswhere
RawVecInner: Sync,
impl Unpin for CampaignStatus
impl UnsafeUnpin for CampaignStatus
impl UnwindSafe for CampaignStatuswhere
RawVecInner: UnwindSafe,
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