pub struct Grouping<'a> {
pub size: &'a u64,
pub max_size: &'a PodOption<NullableU64>,
pub delegate: &'a PodOption<NullablePubkey>,
}Expand description
Extension to define a group of assets.
Assets that are intented to be use as group “markers” must have this extension attached to them.
The size of the group is updated every time an asset is added or removed from the group.
Additionally, the size is decreased when an asset is burned.
Fields§
§size: &'a u64The number of assets in the group.
max_size: &'a PodOption<NullableU64>The maximum number of assets that can be in the group.
When the group is unlimited, this value is 0.
delegate: &'a PodOption<NullablePubkey>An optional delegate authorised to add assets to this group
Trait Implementations§
Source§impl<'a> ExtensionBuilder<'a, Grouping<'a>> for GroupingBuilder
impl<'a> ExtensionBuilder<'a, Grouping<'a>> for GroupingBuilder
Auto Trait Implementations§
impl<'a> Freeze for Grouping<'a>
impl<'a> RefUnwindSafe for Grouping<'a>
impl<'a> Send for Grouping<'a>
impl<'a> Sync for Grouping<'a>
impl<'a> Unpin for Grouping<'a>
impl<'a> UnsafeUnpin for Grouping<'a>
impl<'a> UnwindSafe for Grouping<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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