pub struct GuardSet {Show 18 fields
pub bot_tax: Option<BotTax>,
pub sol_payment: Option<SolPayment>,
pub token_payment: Option<TokenPayment>,
pub start_date: Option<StartDate>,
pub third_party_signer: Option<ThirdPartySigner>,
pub token_gate: Option<TokenGate>,
pub gatekeeper: Option<Gatekeeper>,
pub end_date: Option<EndDate>,
pub allow_list: Option<AllowList>,
pub mint_limit: Option<MintLimit>,
pub nft_payment: Option<NftPayment>,
pub redeemed_amount: Option<RedeemedAmount>,
pub address_gate: Option<AddressGate>,
pub nft_gate: Option<NftGate>,
pub nft_burn: Option<NftBurn>,
pub token_burn: Option<TokenBurn>,
pub freeze_sol_payment: Option<FreezeSolPayment>,
pub freeze_token_payment: Option<FreezeTokenPayment>,
}Expand description
The set of guards available.
Fields§
§bot_tax: Option<BotTax>Last instruction check and bot tax (penalty for invalid transactions).
sol_payment: Option<SolPayment>Sol payment guard (set the price for the mint in lamports).
token_payment: Option<TokenPayment>Token payment guard (set the price for the mint in spl-token amount).
start_date: Option<StartDate>Start data guard (controls when minting is allowed).
third_party_signer: Option<ThirdPartySigner>Third party signer guard.
token_gate: Option<TokenGate>Token gate guard (restricrt access to holders of a specific token).
gatekeeper: Option<Gatekeeper>Gatekeeper guard
end_date: Option<EndDate>End date guard
allow_list: Option<AllowList>Allow list guard
mint_limit: Option<MintLimit>Mint limit guard
nft_payment: Option<NftPayment>NFT Payment
redeemed_amount: Option<RedeemedAmount>Redeemed amount guard
address_gate: Option<AddressGate>Address gate (check access against a specified address)
nft_gate: Option<NftGate>NFT gate guard (check access based on holding a specified NFT)
nft_burn: Option<NftBurn>NFT burn guard (burn a specified NFT)
token_burn: Option<TokenBurn>Token burn guard (burn a specified amount of spl-token)
freeze_sol_payment: Option<FreezeSolPayment>Freeze sol payment guard (set the price for the mint in lamports with a freeze period).
freeze_token_payment: Option<FreezeTokenPayment>Freeze token payment guard (set the price for the mint in spl-token amount with a freeze period).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GuardSet
impl<'de> Deserialize<'de> for GuardSet
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>,
Auto Trait Implementations§
impl Freeze for GuardSet
impl RefUnwindSafe for GuardSet
impl Send for GuardSet
impl Sync for GuardSet
impl Unpin for GuardSet
impl UnwindSafe for GuardSet
Blanket Implementations§
Source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, _digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
Source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more