pub enum ConnectorName<'a> {
Static(&'a str),
Computed(&'a Value),
}Expand description
How a task names its connector.
connector is JSONLogic like every other parameter, so it may be a literal
the host can read at authoring time or an expression that only resolves per
message. Splitting the two is what keeps a computed connector from vanishing
out of crate::Workflow::connector_refs — a host pre-warming connection
pools needs to know it exists even when it cannot know its name yet.
Variants§
Static(&'a str)
Authored as a literal string. Known without a message.
Computed(&'a Value)
Authored as an expression, carrying the authored JSON. Resolve it per
message with the config’s resolve_connector.
Implementations§
Source§impl<'a> ConnectorName<'a>
impl<'a> ConnectorName<'a>
Trait Implementations§
Source§impl<'a> Clone for ConnectorName<'a>
impl<'a> Clone for ConnectorName<'a>
Source§fn clone(&self) -> ConnectorName<'a>
fn clone(&self) -> ConnectorName<'a>
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 moreimpl<'a> Copy for ConnectorName<'a>
Source§impl<'a> Debug for ConnectorName<'a>
impl<'a> Debug for ConnectorName<'a>
impl<'a> Eq for ConnectorName<'a>
Source§impl<'a> PartialEq for ConnectorName<'a>
impl<'a> PartialEq for ConnectorName<'a>
impl<'a> StructuralPartialEq for ConnectorName<'a>
Auto Trait Implementations§
impl<'a> Freeze for ConnectorName<'a>
impl<'a> RefUnwindSafe for ConnectorName<'a>
impl<'a> Send for ConnectorName<'a>
impl<'a> Sync for ConnectorName<'a>
impl<'a> Unpin for ConnectorName<'a>
impl<'a> UnsafeUnpin for ConnectorName<'a>
impl<'a> UnwindSafe for ConnectorName<'a>
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