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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more