pub struct CreateNotificationConfigV2BodyPolicy {
pub offset: String,
pub type_: String,
}Expand description
The offset lifecycle event policy that defines when and how this notification should be triggered. The lifecycle event type is inferred from the policy.type field.
JSON schema
{
"description": "The offset lifecycle event policy that defines when and
how this notification should be triggered. The lifecycle event type is
inferred from the policy.type field.\n",
"type": "object",
"required": [
"offset",
"type"
],
"properties": {
"offset": {
"description": "ISO-8601 duration string indicating how much time
before or after the base event this notification should be sent.
Positive values indicate notifications after the event, negative values
indicate notifications before the event. Examples: \"P1D\" (1 day
after), \"-PT2H\" (2 hours before)\n",
"examples": [
"P1D"
],
"type": "string"
},
"type": {
"description": "The type of lifecycle event that this offset is
based on.\n",
"type": "string"
}
}
}Fields§
§offset: StringISO-8601 duration string indicating how much time before or after the base event this notification should be sent. Positive values indicate notifications after the event, negative values indicate notifications before the event. Examples: “P1D” (1 day after), “-PT2H” (2 hours before)
type_: StringThe type of lifecycle event that this offset is based on.
Trait Implementations§
Source§impl Clone for CreateNotificationConfigV2BodyPolicy
impl Clone for CreateNotificationConfigV2BodyPolicy
Source§fn clone(&self) -> CreateNotificationConfigV2BodyPolicy
fn clone(&self) -> CreateNotificationConfigV2BodyPolicy
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 CreateNotificationConfigV2BodyPolicy
impl<'de> Deserialize<'de> for CreateNotificationConfigV2BodyPolicy
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
Auto Trait Implementations§
impl Freeze for CreateNotificationConfigV2BodyPolicy
impl RefUnwindSafe for CreateNotificationConfigV2BodyPolicy
impl Send for CreateNotificationConfigV2BodyPolicy
impl Sync for CreateNotificationConfigV2BodyPolicy
impl Unpin for CreateNotificationConfigV2BodyPolicy
impl UnsafeUnpin for CreateNotificationConfigV2BodyPolicy
impl UnwindSafe for CreateNotificationConfigV2BodyPolicy
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