pub enum ChannelRef {
Server {
name: String,
},
Webhook(WebhookChannel),
}Expand description
A channel: one the server configuration defines (named by a string in Python), or one the DAG defines itself (an object).
Variants§
Server
[notifications.channels.<name>]: a webhook or an email channel.
Webhook(WebhookChannel)
A WebhookChannel of the DAG’s own (decision 425).
Implementations§
Trait Implementations§
Source§impl Clone for ChannelRef
impl Clone for ChannelRef
Source§fn clone(&self) -> ChannelRef
fn clone(&self) -> ChannelRef
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 ChannelRef
impl Debug for ChannelRef
Source§impl<'de> Deserialize<'de> for ChannelRef
impl<'de> Deserialize<'de> for ChannelRef
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 ChannelRef
Source§impl JsonSchema for ChannelRef
impl JsonSchema for ChannelRef
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 ChannelRef
impl PartialEq for ChannelRef
Source§impl Serialize for ChannelRef
impl Serialize for ChannelRef
impl StructuralPartialEq for ChannelRef
Auto Trait Implementations§
impl Freeze for ChannelRef
impl RefUnwindSafe for ChannelRef
impl Send for ChannelRef
impl Sync for ChannelRef
impl Unpin for ChannelRef
impl UnsafeUnpin for ChannelRef
impl UnwindSafe for ChannelRef
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