pub struct AdapterQuirkEntry {
pub package: String,
pub quirks: Vec<Value>,
}Expand description
One entry in an Adapter’s quirks registry: a package name plus
the ecosystem-specific typed-quirk payloads. The quirks field is
serde_json::Value so each adapter can carry its own typed shape
without polluting the trait with a generic parameter — the JSON
envelope is what substrate’s dispatch layer reads anyway.
Fields§
§package: StringPackage name (crate.name for Cargo, package.json name
for npm, gemspec name for Bundler).
quirks: Vec<Value>Quirk payloads, opaque to the trait. Each adapter shapes
these as its own typed enum (gen-cargo: CrateQuirk); the
JSON form is what substrate dispatches on.
Trait Implementations§
Source§impl Clone for AdapterQuirkEntry
impl Clone for AdapterQuirkEntry
Source§fn clone(&self) -> AdapterQuirkEntry
fn clone(&self) -> AdapterQuirkEntry
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 AdapterQuirkEntry
impl Debug for AdapterQuirkEntry
Source§impl<'de> Deserialize<'de> for AdapterQuirkEntry
impl<'de> Deserialize<'de> for AdapterQuirkEntry
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 AdapterQuirkEntry
impl RefUnwindSafe for AdapterQuirkEntry
impl Send for AdapterQuirkEntry
impl Sync for AdapterQuirkEntry
impl Unpin for AdapterQuirkEntry
impl UnsafeUnpin for AdapterQuirkEntry
impl UnwindSafe for AdapterQuirkEntry
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