Struct mpl_fixed_price_sale::state::GatingConfig
source · [−]pub struct GatingConfig {
pub collection: Pubkey,
pub expire_on_use: bool,
pub gating_time: Option<u64>,
}
Fields
collection: Pubkey
expire_on_use: bool
whether program will burn token or just check availability
gating_time: Option<u64>
Trait Implementations
sourceimpl BorshDeserialize for GatingConfigwhere
Pubkey: BorshDeserialize,
bool: BorshDeserialize,
Option<u64>: BorshDeserialize,
impl BorshDeserialize for GatingConfigwhere
Pubkey: BorshDeserialize,
bool: BorshDeserialize,
Option<u64>: BorshDeserialize,
sourcefn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes. Read more
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
sourceimpl BorshSerialize for GatingConfigwhere
Pubkey: BorshSerialize,
bool: BorshSerialize,
Option<u64>: BorshSerialize,
impl BorshSerialize for GatingConfigwhere
Pubkey: BorshSerialize,
bool: BorshSerialize,
Option<u64>: BorshSerialize,
sourceimpl Clone for GatingConfig
impl Clone for GatingConfig
sourcefn clone(&self) -> GatingConfig
fn clone(&self) -> GatingConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GatingConfig
impl Debug for GatingConfig
sourceimpl PartialEq<GatingConfig> for GatingConfig
impl PartialEq<GatingConfig> for GatingConfig
sourcefn eq(&self, other: &GatingConfig) -> bool
fn eq(&self, other: &GatingConfig) -> bool
impl Eq for GatingConfig
impl StructuralEq for GatingConfig
impl StructuralPartialEq for GatingConfig
Auto Trait Implementations
impl RefUnwindSafe for GatingConfig
impl Send for GatingConfig
impl Sync for GatingConfig
impl Unpin for GatingConfig
impl UnwindSafe for GatingConfig
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more