Struct mpl_core::Collection
source · pub struct Collection {
pub base: BaseCollectionV1,
pub plugin_list: PluginsList,
pub plugin_header: Option<PluginHeaderV1>,
}Fields§
§base: BaseCollectionV1§plugin_list: PluginsList§plugin_header: Option<PluginHeaderV1>Implementations§
source§impl Collection
impl Collection
pub fn deserialize(data: &[u8]) -> Result<Self, Error>
pub fn from_bytes(data: &[u8]) -> Result<Self, Error>
Trait Implementations§
source§impl Debug for Collection
impl Debug for Collection
source§impl<'a> TryFrom<&AccountInfo<'a>> for Collection
impl<'a> TryFrom<&AccountInfo<'a>> for Collection
Auto Trait Implementations§
impl Freeze for Collection
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnwindSafe for Collection
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> 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