pub struct Settings { /* private fields */ }Implementations§
Source§impl Settings
impl Settings
pub fn init( &mut self, allow_minting: bool, minting_mode: MintingMode, ownership_mode: OwnershipMode, nft_kind: NFTKind, holder_mode: NFTHolderMode, burn_mode: BurnMode, events_mode: EventsMode, operator_burn_mode: bool, )
pub fn allow_minting(&self) -> bool
pub fn set_allow_minting(&mut self, value: bool)
pub fn events_mode(&self) -> EventsMode
pub fn burn_mode(&self) -> BurnMode
pub fn ownership_mode(&self) -> OwnershipMode
pub fn minting_mode(&self) -> MintingMode
pub fn holder_mode(&self) -> NFTHolderMode
pub fn operator_burn_mode(&self) -> bool
pub fn nft_kind(&self) -> NFTKind
pub fn set_operator_burn_mode(&mut self, value: bool)
Trait Implementations§
Source§impl Module for Settings
impl Module for Settings
Source§fn new(env: Rc<ContractEnv>) -> Self
fn new(env: Rc<ContractEnv>) -> Self
Creates a new instance of the module with the given contract environment.
Source§fn env(&self) -> Rc<ContractEnv>
fn env(&self) -> Rc<ContractEnv>
Returns the contract environment associated with the module.
Source§impl SchemaErrors for Settings
impl SchemaErrors for Settings
Source§impl SchemaEvents for Settings
impl SchemaEvents for Settings
Source§fn custom_types() -> Vec<Option<CustomType>>
fn custom_types() -> Vec<Option<CustomType>>
Returns a vector of CustomTypes. Read more
Auto Trait Implementations§
impl !Freeze for Settings
impl !RefUnwindSafe for Settings
impl !Send for Settings
impl !Sync for Settings
impl Unpin for Settings
impl !UnwindSafe for Settings
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