pub enum SchemaSource {
CborSchemaId(SchemaId),
InlineCbor(CborBytes),
RefPackPath(String),
RefUri(String),
}Expand description
Schema references used for both runtime I/O and QA answers.
Variants§
CborSchemaId(SchemaId)
Refer to a schema by its canonical ID.
InlineCbor(CborBytes)
Embed canonical CBOR schema bytes inline.
RefPackPath(String)
Refer to a schema stored in another pack.
RefUri(String)
Refer to a schema hosted at an arbitrary URI.
Trait Implementations§
Source§impl Clone for SchemaSource
impl Clone for SchemaSource
Source§fn clone(&self) -> SchemaSource
fn clone(&self) -> SchemaSource
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 SchemaSource
impl Debug for SchemaSource
Source§impl<'de> Deserialize<'de> for SchemaSource
impl<'de> Deserialize<'de> for SchemaSource
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 PartialEq for SchemaSource
impl PartialEq for SchemaSource
Source§impl Serialize for SchemaSource
impl Serialize for SchemaSource
impl Eq for SchemaSource
impl StructuralPartialEq for SchemaSource
Auto Trait Implementations§
impl Freeze for SchemaSource
impl RefUnwindSafe for SchemaSource
impl Send for SchemaSource
impl Sync for SchemaSource
impl Unpin for SchemaSource
impl UnwindSafe for SchemaSource
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<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.