pub struct ConnectionDef {
pub name: String,
pub kind: Option<ConnectionType>,
pub params: BTreeMap<String, Value>,
}Expand description
A connection as the runner reports it when parsing (file_parsed).
Fields§
§name: StringIts name: the function’s, or a typed connection’s first argument (an identifier, unique in the root).
kind: Option<ConnectionType>A typed connection’s type (decision 174); none for a @connection function.
params: BTreeMap<String, Value>Its parameters’ values, by parameter: literals, secrets, and t-strings of them.
Implementations§
Source§impl ConnectionDef
impl ConnectionDef
Sourcepub fn check(&self) -> Result<(), String>
pub fn check(&self) -> Result<(), String>
Checks what a runner can’t be trusted to have checked: a name like a task ID, and only secrets referenced (a connection is defined outside any DAG).
§Errors
What is wrong, naming the connection.
Sourcepub fn secrets(&self) -> Vec<&SecretName>
pub fn secrets(&self) -> Vec<&SecretName>
The secrets its values name, in order (each once).
Trait Implementations§
Source§impl Clone for ConnectionDef
impl Clone for ConnectionDef
Source§fn clone(&self) -> ConnectionDef
fn clone(&self) -> ConnectionDef
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 ConnectionDef
impl Debug for ConnectionDef
Source§impl<'de> Deserialize<'de> for ConnectionDef
impl<'de> Deserialize<'de> for ConnectionDef
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 ConnectionDef
Source§impl JsonSchema for ConnectionDef
impl JsonSchema for ConnectionDef
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ConnectionDef
impl PartialEq for ConnectionDef
Source§impl Serialize for ConnectionDef
impl Serialize for ConnectionDef
impl StructuralPartialEq for ConnectionDef
Auto Trait Implementations§
impl Freeze for ConnectionDef
impl RefUnwindSafe for ConnectionDef
impl Send for ConnectionDef
impl Sync for ConnectionDef
impl Unpin for ConnectionDef
impl UnsafeUnpin for ConnectionDef
impl UnwindSafe for ConnectionDef
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