pub struct WebhookChannel {
pub name: String,
pub url: String,
pub body: Option<Body>,
}Expand description
A webhook a DAG defines (decision 425): its URL must start with one of
[notifications] dag_urls, and it carries no secrets (its URL is in the DAG file).
Fields§
§name: StringIts name, unique among the DAG’s channels.
url: StringWhere it posts.
body: Option<Body>The JSON it posts; none: schedr’s fixed JSON (decision 417).
Trait Implementations§
Source§impl Clone for WebhookChannel
impl Clone for WebhookChannel
Source§fn clone(&self) -> WebhookChannel
fn clone(&self) -> WebhookChannel
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 WebhookChannel
impl Debug for WebhookChannel
Source§impl<'de> Deserialize<'de> for WebhookChannel
impl<'de> Deserialize<'de> for WebhookChannel
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 WebhookChannel
Source§impl JsonSchema for WebhookChannel
impl JsonSchema for WebhookChannel
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 WebhookChannel
impl PartialEq for WebhookChannel
Source§impl Serialize for WebhookChannel
impl Serialize for WebhookChannel
impl StructuralPartialEq for WebhookChannel
Auto Trait Implementations§
impl Freeze for WebhookChannel
impl RefUnwindSafe for WebhookChannel
impl Send for WebhookChannel
impl Sync for WebhookChannel
impl Unpin for WebhookChannel
impl UnsafeUnpin for WebhookChannel
impl UnwindSafe for WebhookChannel
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