pub struct AdapterDescriptor {
pub name: String,
pub summary: String,
pub actions: Vec<ActionDescriptor>,
}Expand description
Catalog of an adapter’s dispatch surface, exposed via Adapter::descriptor.
Built at runtime (not const) because some adapter names are runtime values
(e.g. MockAdapter takes its name as a constructor arg). This type is
the on-the-wire JSON shape consumed by flow-spec-dump -> markdown
renderer; renaming a field here is a breaking change to the spec build.
Fields§
§name: Stringdata.adapter value to use in nodes that target this adapter.
summary: StringOne-paragraph human description (rendered as the section intro in
docs/dsl/adapters/<name>.md).
actions: Vec<ActionDescriptor>Every ActionDescriptor::id here must correspond to a live arm of
this adapter’s execute() match. Drift between the two is the bug
the per-adapter descriptor_lists_every_action test is meant to
catch.
Trait Implementations§
Source§impl Clone for AdapterDescriptor
impl Clone for AdapterDescriptor
Source§fn clone(&self) -> AdapterDescriptor
fn clone(&self) -> AdapterDescriptor
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 AdapterDescriptor
impl Debug for AdapterDescriptor
Source§impl<'de> Deserialize<'de> for AdapterDescriptor
impl<'de> Deserialize<'de> for AdapterDescriptor
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 AdapterDescriptor
impl RefUnwindSafe for AdapterDescriptor
impl Send for AdapterDescriptor
impl Sync for AdapterDescriptor
impl Unpin for AdapterDescriptor
impl UnsafeUnpin for AdapterDescriptor
impl UnwindSafe for AdapterDescriptor
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