pub struct SetTaskPushNotificationConfigRequest {
pub config: TaskPushNotificationConfig,
pub config_id: String,
pub parent: String,
pub tenant: Option<String>,
}Expand description
Represents a request for the tasks/pushNotificationConfig/set method.
JSON schema
{
"title": "Set Task Push Notification Config Request",
"description": "Represents a request for the `tasks/pushNotificationConfig/set` method.",
"type": "object",
"required": [
"config",
"configId",
"parent"
],
"properties": {
"config": {
"description": "The configuration to create.",
"$ref": "#/definitions/TaskPushNotificationConfig"
},
"configId": {
"description": "The ID for the new config.",
"type": "string"
},
"parent": {
"description": "The parent task resource for this config.\n Format: tasks/{task_id}",
"type": "string"
},
"tenant": {
"description": "Optional tenant, provided as a path parameter.",
"type": "string"
}
},
"additionalProperties": false,
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Fields§
§config: TaskPushNotificationConfigThe configuration to create.
config_id: StringThe ID for the new config.
parent: StringThe parent task resource for this config. Format: tasks/{task_id}
tenant: Option<String>Optional tenant, provided as a path parameter.
Implementations§
Trait Implementations§
Source§impl Clone for SetTaskPushNotificationConfigRequest
impl Clone for SetTaskPushNotificationConfigRequest
Source§fn clone(&self) -> SetTaskPushNotificationConfigRequest
fn clone(&self) -> SetTaskPushNotificationConfigRequest
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<'de> Deserialize<'de> for SetTaskPushNotificationConfigRequest
impl<'de> Deserialize<'de> for SetTaskPushNotificationConfigRequest
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<SetTaskPushNotificationConfigRequest> for SetTaskPushNotificationConfigRequest
impl From<SetTaskPushNotificationConfigRequest> for SetTaskPushNotificationConfigRequest
Source§fn from(value: SetTaskPushNotificationConfigRequest) -> Self
fn from(value: SetTaskPushNotificationConfigRequest) -> Self
Converts to this type from the input type.
Source§impl TryFrom<SetTaskPushNotificationConfigRequest> for SetTaskPushNotificationConfigRequest
impl TryFrom<SetTaskPushNotificationConfigRequest> for SetTaskPushNotificationConfigRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: SetTaskPushNotificationConfigRequest,
) -> Result<Self, ConversionError>
fn try_from( value: SetTaskPushNotificationConfigRequest, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SetTaskPushNotificationConfigRequest
impl RefUnwindSafe for SetTaskPushNotificationConfigRequest
impl Send for SetTaskPushNotificationConfigRequest
impl Sync for SetTaskPushNotificationConfigRequest
impl Unpin for SetTaskPushNotificationConfigRequest
impl UnsafeUnpin for SetTaskPushNotificationConfigRequest
impl UnwindSafe for SetTaskPushNotificationConfigRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more