Derive Macro near_contract_tools::Ownable
source · [−]#[derive(Ownable)]
{
// Attributes available to this derive:
#[ownable]
}
Expand description
Creates a managed, lazily-loaded Ownership
instance for the targeted
#[near_bindgen]
struct. Creates an externally-accessible Ownable
implementation, as well as an internal-only OwnershipController
implementation.
The storage key prefix for the Ownership
struct can be optionally
specified (default: ~o
) using #[ownable(storage_key = "<expression>")]
.