pub struct SchemaMeta {
pub protocol: Option<String>,
pub category: Option<String>,
pub verified: bool,
pub trust_level: TrustLevel,
pub provenance_sig: Option<String>,
}Expand description
Metadata block attached to a schema.
Fields§
§protocol: Option<String>Protocol slug, e.g. “uniswap-v3”
category: Option<String>Category, e.g. “dex”, “lending”, “bridge”, “nft”
verified: boolWhether maintainers have reviewed and verified this schema
trust_level: TrustLevelAssigned trust level
provenance_sig: Option<String>Optional protocol team signature (hex-encoded)
Trait Implementations§
Source§impl Clone for SchemaMeta
impl Clone for SchemaMeta
Source§fn clone(&self) -> SchemaMeta
fn clone(&self) -> SchemaMeta
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 SchemaMeta
impl Debug for SchemaMeta
Source§impl Default for SchemaMeta
impl Default for SchemaMeta
Source§fn default() -> SchemaMeta
fn default() -> SchemaMeta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SchemaMeta
impl<'de> Deserialize<'de> for SchemaMeta
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
Auto Trait Implementations§
impl Freeze for SchemaMeta
impl RefUnwindSafe for SchemaMeta
impl Send for SchemaMeta
impl Sync for SchemaMeta
impl Unpin for SchemaMeta
impl UnsafeUnpin for SchemaMeta
impl UnwindSafe for SchemaMeta
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