pub struct TaskPushNotificationConfig {
pub name: String,
pub push_notification_config: PushNotificationConfig,
}Expand description
A container associating a push notification configuration with a specific task.
JSON schema
{
"title": "Task Push Notification Config",
"description": "A container associating a push notification configuration with a specific\n task.",
"type": "object",
"required": [
"name",
"pushNotificationConfig"
],
"properties": {
"name": {
"description": "The resource name of the config.\n Format: tasks/{task_id}/pushNotificationConfigs/{config_id}",
"type": "string"
},
"pushNotificationConfig": {
"description": "The push notification configuration details.",
"$ref": "#/definitions/PushNotificationConfig"
}
},
"additionalProperties": false,
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Fields§
§name: StringThe resource name of the config. Format: tasks/{task_id}/pushNotificationConfigs/{config_id}
push_notification_config: PushNotificationConfigThe push notification configuration details.
Implementations§
Source§impl TaskPushNotificationConfig
impl TaskPushNotificationConfig
pub fn builder() -> TaskPushNotificationConfig
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 (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 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<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
Source§impl From<TaskPushNotificationConfig> for TaskPushNotificationConfig
impl From<TaskPushNotificationConfig> for TaskPushNotificationConfig
Source§fn from(value: TaskPushNotificationConfig) -> Self
fn from(value: TaskPushNotificationConfig) -> Self
Converts to this type from the input type.
Source§impl TryFrom<TaskPushNotificationConfig> for TaskPushNotificationConfig
impl TryFrom<TaskPushNotificationConfig> for TaskPushNotificationConfig
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TaskPushNotificationConfig) -> Result<Self, ConversionError>
fn try_from(value: TaskPushNotificationConfig) -> Result<Self, ConversionError>
Performs the conversion.
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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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