pub struct TokenPolicyCap<T: MoveType> {
pub id: UID,
pub for_: ID,
/* private fields */
}
Expand description
A Capability that manages a single TokenPolicy
specified in the for
field. Created together with TokenPolicy
in the new
function.
Fields§
§id: UID
§for_: ID
Implementations§
Source§impl<T: MoveType> TokenPolicyCap<T>
impl<T: MoveType> TokenPolicyCap<T>
Source§impl<T: MoveType> TokenPolicyCap<T>
impl<T: MoveType> TokenPolicyCap<T>
pub fn move_instance(self, t: <T as MoveType>::TypeTag) -> MoveInstance<Self>
pub fn type_(t: <T as MoveType>::TypeTag) -> TokenPolicyCapTypeTag<T>
Trait Implementations§
Source§impl<T: Clone + MoveType> Clone for TokenPolicyCap<T>
impl<T: Clone + MoveType> Clone for TokenPolicyCap<T>
Source§fn clone(&self) -> TokenPolicyCap<T>
fn clone(&self) -> TokenPolicyCap<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de, T: MoveType> Deserialize<'de> for TokenPolicyCap<T>
impl<'de, T: MoveType> Deserialize<'de> for TokenPolicyCap<T>
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: MoveType> Display for TokenPolicyCap<T>
impl<T: MoveType> Display for TokenPolicyCap<T>
Source§impl<T: MoveType> MoveStruct for TokenPolicyCap<T>
impl<T: MoveType> MoveStruct for TokenPolicyCap<T>
type StructTag = TokenPolicyCapTypeTag<T>
Source§impl<T: MoveType> MoveType for TokenPolicyCap<T>
impl<T: MoveType> MoveType for TokenPolicyCap<T>
Source§impl<T: MoveType> Serialize for TokenPolicyCap<T>
impl<T: MoveType> Serialize for TokenPolicyCap<T>
Source§impl<T: MoveType> StaticAddress for TokenPolicyCap<T>
impl<T: MoveType> StaticAddress for TokenPolicyCap<T>
Source§impl<T: MoveType> StaticModule for TokenPolicyCap<T>
impl<T: MoveType> StaticModule for TokenPolicyCap<T>
fn module() -> Identifier
Source§impl<T: MoveType> StaticName for TokenPolicyCap<T>
impl<T: MoveType> StaticName for TokenPolicyCap<T>
fn name() -> Identifier
Source§impl<T: MoveType + StaticTypeTag> StaticTypeParams for TokenPolicyCap<T>
impl<T: MoveType + StaticTypeTag> StaticTypeParams for TokenPolicyCap<T>
fn type_params() -> Vec<TypeTag>
Source§impl<T: MoveType> Tabled for TokenPolicyCap<T>
impl<T: MoveType> Tabled for TokenPolicyCap<T>
impl<T: Eq + MoveType> Eq for TokenPolicyCap<T>
impl<T: MoveType> StructuralPartialEq for TokenPolicyCap<T>
Auto Trait Implementations§
impl<T> Freeze for TokenPolicyCap<T>
impl<T> RefUnwindSafe for TokenPolicyCap<T>where
T: RefUnwindSafe,
impl<T> Send for TokenPolicyCap<T>where
T: Send,
impl<T> Sync for TokenPolicyCap<T>where
T: Sync,
impl<T> Unpin for TokenPolicyCap<T>where
T: Unpin,
impl<T> UnwindSafe for TokenPolicyCap<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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