pub struct AdapterDescription {
pub port: Port,
pub kind: String,
pub schema: AdapterSchema,
pub example: Options,
pub secrets: Vec<String>,
pub index_schema: Option<AdapterSchema>,
}Expand description
The rendered facts about one adapter’s options: the JSON schema (draft-07; doc comments as descriptions, serde defaults as defaults), an example, and the field paths that accept an override variable.
Fields§
§port: PortWhich port the adapter implements.
kind: StringThe adapter’s type token.
schema: AdapterSchemaThe JSON schema of the options struct.
example: OptionsA complete example, as it would appear under the entry.
secrets: Vec<String>The Secret fields, as .-joined paths from the entry root.
index_schema: Option<AdapterSchema>The schema of the options the adapter takes per index (an [[index]]
entry’s sinks.<name> table), or None when it takes none.
Implementations§
Source§impl AdapterDescription
impl AdapterDescription
Sourcepub fn override_vars<'a>(
&'a self,
entry: &'a str,
) -> impl Iterator<Item = String> + 'a
pub fn override_vars<'a>( &'a self, entry: &'a str, ) -> impl Iterator<Item = String> + 'a
The override variable of every secret field for the entry named
entry (a sink’s name, or source/stream for the singletons).
Trait Implementations§
Source§impl Clone for AdapterDescription
impl Clone for AdapterDescription
Source§impl Debug for AdapterDescription
impl Debug for AdapterDescription
Source§impl<'de> Deserialize<'de> for AdapterDescription
impl<'de> Deserialize<'de> for AdapterDescription
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 Forget for AdapterDescription
impl Freeze for AdapterDescription
impl Move for AdapterDescription
impl RefUnwindSafe for AdapterDescription
impl Send for AdapterDescription
impl Sync for AdapterDescription
impl Unpin for AdapterDescription
impl UnsafeUnpin for AdapterDescription
impl UnwindSafe for AdapterDescription
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