pub enum CIP25Version {
V1,
V2,
}Expand description
Which version of the CIP25 spec to use. See CIP25 for details. This will change how things are encoded but for the most part contains the same information.
Variants§
V1
Initial version of CIP25 with only string (utf8) asset names allowed.
V2
Second version of CIP25. Supports any type of asset names.
Trait Implementations§
Source§impl Clone for CIP25Version
impl Clone for CIP25Version
Source§fn clone(&self) -> CIP25Version
fn clone(&self) -> CIP25Version
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 Debug for CIP25Version
impl Debug for CIP25Version
Source§impl<'de> Deserialize<'de> for CIP25Version
impl<'de> Deserialize<'de> for CIP25Version
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<CIP25Version> for JsValue
impl From<CIP25Version> for JsValue
Source§fn from(value: CIP25Version) -> Self
fn from(value: CIP25Version) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for CIP25Version
impl FromWasmAbi for CIP25Version
Source§impl IntoWasmAbi for CIP25Version
impl IntoWasmAbi for CIP25Version
Source§impl JsonSchema for CIP25Version
impl JsonSchema for CIP25Version
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl OptionFromWasmAbi for CIP25Version
impl OptionFromWasmAbi for CIP25Version
Source§impl OptionIntoWasmAbi for CIP25Version
impl OptionIntoWasmAbi for CIP25Version
Source§impl Ord for CIP25Version
impl Ord for CIP25Version
Source§fn cmp(&self, other: &CIP25Version) -> Ordering
fn cmp(&self, other: &CIP25Version) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CIP25Version
impl PartialEq for CIP25Version
Source§impl PartialOrd for CIP25Version
impl PartialOrd for CIP25Version
Source§impl Serialize for CIP25Version
impl Serialize for CIP25Version
Source§impl TryFromJsValue for CIP25Version
impl TryFromJsValue for CIP25Version
Source§fn try_from_js_value(
value: JsValue,
) -> Result<Self, <CIP25Version as TryFromJsValue>::Error>
fn try_from_js_value( value: JsValue, ) -> Result<Self, <CIP25Version as TryFromJsValue>::Error>
Performs the conversion.
Source§impl VectorFromWasmAbi for CIP25Version
impl VectorFromWasmAbi for CIP25Version
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[CIP25Version]>
Source§impl VectorIntoJsValue for CIP25Version
impl VectorIntoJsValue for CIP25Version
fn vector_into_jsvalue(vector: Box<[CIP25Version]>) -> JsValue
Source§impl VectorIntoWasmAbi for CIP25Version
impl VectorIntoWasmAbi for CIP25Version
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[CIP25Version]>) -> Self::Abi
Source§impl WasmDescribeVector for CIP25Version
impl WasmDescribeVector for CIP25Version
impl Copy for CIP25Version
impl Eq for CIP25Version
impl StructuralPartialEq for CIP25Version
Auto Trait Implementations§
impl Freeze for CIP25Version
impl RefUnwindSafe for CIP25Version
impl Send for CIP25Version
impl Sync for CIP25Version
impl Unpin for CIP25Version
impl UnwindSafe for CIP25Version
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 moreSource§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.