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 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 CustomSchema for ScryptoCustomSchema
impl CustomSchema for ScryptoCustomSchema
type CustomLocalTypeKind = ScryptoCustomTypeKind
type CustomAggregatorTypeKind = ScryptoCustomTypeKind
type CustomTypeKindLabel = ScryptoCustomTypeKindLabel
type CustomTypeValidation = ScryptoCustomTypeValidation
Source§type DefaultCustomExtension = ScryptoCustomExtension
type DefaultCustomExtension = ScryptoCustomExtension
Should only be used for default encoding of a schema, where it’s required.
Typically you should start from a CustomExtension and not use this.
fn linearize_type_kind( type_kind: Self::CustomLocalTypeKind, _type_indices: &IndexSet<TypeHash>, ) -> Self::CustomAggregatorTypeKind
fn resolve_well_known_type( well_known_id: WellKnownTypeId, ) -> Option<&'static LocalTypeData<Self>>
Source§fn validate_custom_type_kind(
_context: &SchemaContext,
type_kind: &Self::CustomLocalTypeKind,
) -> Result<(), SchemaValidationError>
fn validate_custom_type_kind( _context: &SchemaContext, type_kind: &Self::CustomLocalTypeKind, ) -> Result<(), SchemaValidationError>
Used when validating schemas are self-consistent. Read more
Source§fn validate_type_metadata_with_custom_type_kind(
_: &SchemaContext,
type_kind: &Self::CustomLocalTypeKind,
type_metadata: &TypeMetadata,
) -> Result<(), SchemaValidationError>
fn validate_type_metadata_with_custom_type_kind( _: &SchemaContext, type_kind: &Self::CustomLocalTypeKind, 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: &Self::CustomLocalTypeKind,
custom_type_validation: &Self::CustomTypeValidation,
) -> Result<(), SchemaValidationError>
fn validate_custom_type_validation( _context: &SchemaContext, custom_type_kind: &Self::CustomLocalTypeKind, custom_type_validation: &Self::CustomTypeValidation, ) -> Result<(), SchemaValidationError>
Used when validating schemas are self-consistent. Read more
fn empty_schema() -> &'static Schema<Self>
Source§impl Debug for ScryptoCustomSchema
impl Debug for ScryptoCustomSchema
Source§impl PartialEq for ScryptoCustomSchema
impl PartialEq for ScryptoCustomSchema
impl Copy for ScryptoCustomSchema
impl Eq for ScryptoCustomSchema
impl StructuralPartialEq for ScryptoCustomSchema
Auto Trait Implementations§
impl Freeze for ScryptoCustomSchema
impl RefUnwindSafe for ScryptoCustomSchema
impl Send for ScryptoCustomSchema
impl Sync for ScryptoCustomSchema
impl Unpin for ScryptoCustomSchema
impl UnwindSafe for ScryptoCustomSchema
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, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
type Error = <U as ContextualTryFrom<T>>::Error
type Context = <U as ContextualTryFrom<T>>::Context
fn contextual_try_into( self, context: &<U as ContextualTryFrom<T>>::Context, ) -> Result<U, <U as ContextualTryFrom<T>>::Error>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.