Enum rgb_lib::AssetSchema
source · pub enum AssetSchema {
Nia = 1,
Cfa = 2,
}
Expand description
The schema of an asset.
Variants§
Implementations§
source§impl AssetSchema
impl AssetSchema
sourcepub fn from_schema_id(schema_id: String) -> Result<AssetSchema, Error>
pub fn from_schema_id(schema_id: String) -> Result<AssetSchema, Error>
Get the AssetSchema given a schema ID.
Trait Implementations§
source§impl ActiveEnum for AssetSchema
impl ActiveEnum for AssetSchema
source§fn try_from_value(v: &Self::Value) -> Result<Self, DbErr>
fn try_from_value(v: &Self::Value) -> Result<Self, DbErr>
Try to convert the corresponding value into enum variant.
source§fn into_value(self) -> Self::Value
fn into_value(self) -> Self::Value
Convert an owned enum variant into the corresponding value.
source§fn as_enum(&self) -> SimpleExpr
fn as_enum(&self) -> SimpleExpr
Construct a enum expression with casting
source§impl Clone for AssetSchema
impl Clone for AssetSchema
source§fn clone(&self) -> AssetSchema
fn clone(&self) -> AssetSchema
Returns a copy 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 Debug for AssetSchema
impl Debug for AssetSchema
source§impl<'de> Deserialize<'de> for AssetSchema
impl<'de> Deserialize<'de> for AssetSchema
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 From<AssetSchema> for AssetIface
impl From<AssetSchema> for AssetIface
source§fn from(x: AssetSchema) -> AssetIface
fn from(x: AssetSchema) -> AssetIface
Converts to this type from the input type.
source§impl Hash for AssetSchema
impl Hash for AssetSchema
source§impl Into<Value> for AssetSchema
impl Into<Value> for AssetSchema
source§impl IntoEnumIterator for AssetSchema
impl IntoEnumIterator for AssetSchema
source§impl PartialEq for AssetSchema
impl PartialEq for AssetSchema
source§fn eq(&self, other: &AssetSchema) -> bool
fn eq(&self, other: &AssetSchema) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AssetSchema
impl Serialize for AssetSchema
source§impl TryGetable for AssetSchema
impl TryGetable for AssetSchema
source§fn try_get_by<I: ColIdx>(res: &QueryResult, idx: I) -> Result<Self, TryGetError>
fn try_get_by<I: ColIdx>(res: &QueryResult, idx: I) -> Result<Self, TryGetError>
Get a value from the query result with an ColIdx
source§fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError>
fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError>
Get a value from the query result with prefixed column name
source§fn try_get_by_index(
res: &QueryResult,
index: usize
) -> Result<Self, TryGetError>
fn try_get_by_index( res: &QueryResult, index: usize ) -> Result<Self, TryGetError>
Get a value from the query result based on the order in the select expressions
source§impl TryGetableArray for AssetSchema
impl TryGetableArray for AssetSchema
source§fn try_get_by<I: ColIdx>(
res: &QueryResult,
index: I
) -> Result<Vec<Self>, TryGetError>
fn try_get_by<I: ColIdx>( res: &QueryResult, index: I ) -> Result<Vec<Self>, TryGetError>
Just a delegate
source§impl ValueType for AssetSchema
impl ValueType for AssetSchema
impl Copy for AssetSchema
impl Eq for AssetSchema
impl NotU8 for AssetSchema
impl StructuralEq for AssetSchema
impl StructuralPartialEq for AssetSchema
Auto Trait Implementations§
impl RefUnwindSafe for AssetSchema
impl Send for AssetSchema
impl Sync for AssetSchema
impl Unpin for AssetSchema
impl UnwindSafe for AssetSchema
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<V> FromValueTuple for V
impl<V> FromValueTuple for V
fn from_value_tuple<I>(i: I) -> Vwhere
I: IntoValueTuple,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<V> IntoValueTuple for V
impl<V> IntoValueTuple for V
fn into_value_tuple(self) -> ValueTuple
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> TryFromU64 for Twhere
T: ActiveEnum,
impl<T> TryFromU64 for Twhere
T: ActiveEnum,
source§impl<T> TryGetableMany for Twhere
T: TryGetable,
impl<T> TryGetableMany for Twhere
T: TryGetable,
source§fn try_get_many(
res: &QueryResult,
pre: &str,
cols: &[String]
) -> Result<T, TryGetError>
fn try_get_many( res: &QueryResult, pre: &str, cols: &[String] ) -> Result<T, TryGetError>
Get a tuple value from the query result with prefixed column name
source§fn try_get_many_by_index(res: &QueryResult) -> Result<T, TryGetError>
fn try_get_many_by_index(res: &QueryResult) -> Result<T, TryGetError>
Get a tuple value from the query result based on the order in the select expressions