pub struct RepresentationRegistry {
pub schema_version: u32,
pub registry_id: String,
pub source: String,
pub representations: Vec<RegisteredRepresentation>,
}Expand description
The frozen, published catalogue of built-in representation IDs.
Build it with representation_registry. The serialized form is the
docs/contracts/representation_registry.v1.json contract artifact.
Fields§
§schema_version: u32Wire-shape version of this manifest
(REPRESENTATION_REGISTRY_SCHEMA_VERSION).
registry_id: StringStable identifier of this registry contract
(REPRESENTATION_REGISTRY_ID).
source: StringRepo-relative provenance of the frozen IDs
(REPRESENTATION_REGISTRY_SOURCE).
representations: Vec<RegisteredRepresentation>Every built-in representation, in BUILTIN_DATA_MODELS order.
Implementations§
Trait Implementations§
Source§impl Clone for RepresentationRegistry
impl Clone for RepresentationRegistry
Source§fn clone(&self) -> RepresentationRegistry
fn clone(&self) -> RepresentationRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RepresentationRegistry
impl Debug for RepresentationRegistry
Source§impl<'de> Deserialize<'de> for RepresentationRegistry
impl<'de> Deserialize<'de> for RepresentationRegistry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RepresentationRegistry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RepresentationRegistry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RepresentationRegistry
impl PartialEq for RepresentationRegistry
Source§fn eq(&self, other: &RepresentationRegistry) -> bool
fn eq(&self, other: &RepresentationRegistry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RepresentationRegistry
impl Serialize for RepresentationRegistry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RepresentationRegistry
Auto Trait Implementations§
impl Freeze for RepresentationRegistry
impl RefUnwindSafe for RepresentationRegistry
impl Send for RepresentationRegistry
impl Sync for RepresentationRegistry
impl Unpin for RepresentationRegistry
impl UnsafeUnpin for RepresentationRegistry
impl UnwindSafe for RepresentationRegistry
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