pub struct IndexableAsset {
pub owner: Option<Pubkey>,
pub update_authority: UpdateAuthority,
pub name: String,
pub uri: String,
pub seq: u64,
pub num_minted: Option<u32>,
pub current_size: Option<u32>,
pub plugins: HashMap<PluginType, IndexablePluginSchemaV1>,
pub unknown_plugins: Vec<IndexableUnknownPluginSchemaV1>,
pub external_plugins: Vec<IndexableExternalPluginSchemaV1>,
pub unknown_external_plugins: Vec<IndexableUnknownExternalPluginSchemaV1>,
}
Expand description
A type used to store both Core Assets and Core Collections for indexing.
Fields§
§owner: Option<Pubkey>
§name: String
§uri: String
§seq: u64
§num_minted: Option<u32>
§current_size: Option<u32>
§plugins: HashMap<PluginType, IndexablePluginSchemaV1>
§unknown_plugins: Vec<IndexableUnknownPluginSchemaV1>
§external_plugins: Vec<IndexableExternalPluginSchemaV1>
§unknown_external_plugins: Vec<IndexableUnknownExternalPluginSchemaV1>
Implementations§
Source§impl IndexableAsset
impl IndexableAsset
Sourcepub fn from_asset(asset: BaseAssetV1, seq: u64) -> Self
pub fn from_asset(asset: BaseAssetV1, seq: u64) -> Self
Create a new IndexableAsset
from a BaseAssetV1``. Note this uses a passed-in
seqrather than the one contained in
asset` to avoid errors.
Sourcepub fn from_collection(collection: BaseCollectionV1) -> Self
pub fn from_collection(collection: BaseCollectionV1) -> Self
Create a new IndexableAsset
from a BaseCollectionV1
.
Trait Implementations§
Source§impl Clone for IndexableAsset
impl Clone for IndexableAsset
Source§fn clone(&self) -> IndexableAsset
fn clone(&self) -> IndexableAsset
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IndexableAsset
impl Debug for IndexableAsset
Source§impl PartialEq for IndexableAsset
impl PartialEq for IndexableAsset
impl Eq for IndexableAsset
impl StructuralPartialEq for IndexableAsset
Auto Trait Implementations§
impl Freeze for IndexableAsset
impl RefUnwindSafe for IndexableAsset
impl Send for IndexableAsset
impl Sync for IndexableAsset
impl Unpin for IndexableAsset
impl UnwindSafe for IndexableAsset
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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