pub enum ExtensionEntry {
Structured {
info: Value,
schema: Option<Value>,
extra: Map<String, Value>,
},
Raw(Value),
}Expand description
Payload attached to a single extension key.
Structured form is {info, schema?, …}. Sibling keys such as SIWX
supportedChains are preserved on deserialize so buyers can read them.
Raw form is forwarded verbatim.
Variants§
Structured
Canonical {info, schema?} envelope plus any sibling fields.
Fields
Raw(Value)
Raw JSON payload, forwarded as-is.
Implementations§
Source§impl ExtensionEntry
impl ExtensionEntry
Sourcepub fn with_schema(info: Value, schema: Value) -> Self
pub fn with_schema(info: Value, schema: Value) -> Self
Structured entry with info and schema.
Trait Implementations§
Source§impl Clone for ExtensionEntry
impl Clone for ExtensionEntry
Source§fn clone(&self) -> ExtensionEntry
fn clone(&self) -> ExtensionEntry
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 ExtensionEntry
impl Debug for ExtensionEntry
Source§impl<'de> Deserialize<'de> for ExtensionEntry
impl<'de> Deserialize<'de> for ExtensionEntry
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
impl Eq for ExtensionEntry
Source§impl From<Value> for ExtensionEntry
impl From<Value> for ExtensionEntry
Source§impl PartialEq for ExtensionEntry
impl PartialEq for ExtensionEntry
Source§impl Serialize for ExtensionEntry
impl Serialize for ExtensionEntry
impl StructuralPartialEq for ExtensionEntry
Auto Trait Implementations§
impl Freeze for ExtensionEntry
impl RefUnwindSafe for ExtensionEntry
impl Send for ExtensionEntry
impl Sync for ExtensionEntry
impl Unpin for ExtensionEntry
impl UnsafeUnpin for ExtensionEntry
impl UnwindSafe for ExtensionEntry
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