Struct scrypto::prelude::radix_engine_common::data::scrypto::ScryptoCustomSchema
source · pub struct ScryptoCustomSchema {}
Trait Implementations§
source§impl Clone for ScryptoCustomSchema
impl Clone for ScryptoCustomSchema
source§fn clone(&self) -> ScryptoCustomSchema
fn clone(&self) -> ScryptoCustomSchema
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 CustomSchema for ScryptoCustomSchema
impl CustomSchema for ScryptoCustomSchema
type CustomTypeKind<L: SchemaTypeLink> = ScryptoCustomTypeKind
type CustomTypeValidation = ScryptoCustomTypeValidation
fn linearize_type_kind( type_kind: <ScryptoCustomSchema as CustomSchema>::CustomTypeKind<RustTypeId>, _type_indices: &IndexSet<[u8; 20]> ) -> <ScryptoCustomSchema as CustomSchema>::CustomTypeKind<LocalTypeId>
fn resolve_well_known_type( well_known_id: WellKnownTypeId ) -> Option<&'static TypeData<<ScryptoCustomSchema as CustomSchema>::CustomTypeKind<LocalTypeId>, LocalTypeId>>
source§fn validate_custom_type_kind(
_context: &SchemaContext,
type_kind: &<ScryptoCustomSchema as CustomSchema>::CustomTypeKind<LocalTypeId>
) -> Result<(), SchemaValidationError>
fn validate_custom_type_kind( _context: &SchemaContext, type_kind: &<ScryptoCustomSchema as CustomSchema>::CustomTypeKind<LocalTypeId> ) -> Result<(), SchemaValidationError>
Used when validating schemas are self-consistent. Read more
source§fn validate_type_metadata_with_custom_type_kind(
_: &SchemaContext,
type_kind: &<ScryptoCustomSchema as CustomSchema>::CustomTypeKind<LocalTypeId>,
type_metadata: &TypeMetadata
) -> Result<(), SchemaValidationError>
fn validate_type_metadata_with_custom_type_kind( _: &SchemaContext, type_kind: &<ScryptoCustomSchema as CustomSchema>::CustomTypeKind<LocalTypeId>, type_metadata: &TypeMetadata ) -> Result<(), SchemaValidationError>
Used when validating schemas are self-consistent. Read more
source§fn validate_custom_type_validation(
_context: &SchemaContext,
custom_type_kind: &<ScryptoCustomSchema as CustomSchema>::CustomTypeKind<LocalTypeId>,
custom_type_validation: &<ScryptoCustomSchema as CustomSchema>::CustomTypeValidation
) -> Result<(), SchemaValidationError>
fn validate_custom_type_validation( _context: &SchemaContext, custom_type_kind: &<ScryptoCustomSchema as CustomSchema>::CustomTypeKind<LocalTypeId>, custom_type_validation: &<ScryptoCustomSchema as CustomSchema>::CustomTypeValidation ) -> Result<(), SchemaValidationError>
Used when validating schemas are self-consistent. Read more
fn empty_schema() -> &'static SchemaV1<ScryptoCustomSchema>
source§impl Debug for ScryptoCustomSchema
impl Debug for ScryptoCustomSchema
source§impl PartialEq for ScryptoCustomSchema
impl PartialEq for ScryptoCustomSchema
source§fn eq(&self, other: &ScryptoCustomSchema) -> bool
fn eq(&self, other: &ScryptoCustomSchema) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ScryptoCustomSchema
impl Eq for ScryptoCustomSchema
impl StructuralPartialEq for ScryptoCustomSchema
Auto Trait Implementations§
impl RefUnwindSafe for ScryptoCustomSchema
impl Send for ScryptoCustomSchema
impl Sync for ScryptoCustomSchema
impl Unpin for ScryptoCustomSchema
impl UnwindSafe for ScryptoCustomSchema
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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<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.§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