pub struct TaskPushNotificationConfig {
pub tenant: Option<String>,
pub id: Option<String>,
pub task_id: String,
pub url: String,
pub token: Option<String>,
pub authentication: Option<AuthenticationInfo>,
}Expand description
Configuration for delivering task updates to a webhook endpoint.
In v1.0, this is a single flat type combining the previous
PushNotificationConfig and TaskPushNotificationConfig.
Fields§
§tenant: Option<String>Optional tenant identifier for multi-tenancy.
id: Option<String>Server-assigned configuration identifier.
Absent when first creating the config; populated in the server response.
task_id: StringThe task for which push notifications are configured.
url: StringHTTPS URL of the client’s webhook endpoint.
token: Option<String>Optional shared secret for request verification.
authentication: Option<AuthenticationInfo>Authentication details the agent should use when calling the webhook.
Implementations§
Trait Implementations§
Source§impl Clone for TaskPushNotificationConfig
impl Clone for TaskPushNotificationConfig
Source§fn clone(&self) -> TaskPushNotificationConfig
fn clone(&self) -> TaskPushNotificationConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 TaskPushNotificationConfig
impl Debug for TaskPushNotificationConfig
Source§impl<'de> Deserialize<'de> for TaskPushNotificationConfig
impl<'de> Deserialize<'de> for TaskPushNotificationConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaskPushNotificationConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaskPushNotificationConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TaskPushNotificationConfig
impl Serialize for TaskPushNotificationConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TaskPushNotificationConfig
impl RefUnwindSafe for TaskPushNotificationConfig
impl Send for TaskPushNotificationConfig
impl Sync for TaskPushNotificationConfig
impl Unpin for TaskPushNotificationConfig
impl UnsafeUnpin for TaskPushNotificationConfig
impl UnwindSafe for TaskPushNotificationConfig
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