#[non_exhaustive]pub struct GetNotificationChannelVerificationCodeRequest {
pub name: String,
pub expire_time: Option<Timestamp>,
/* private fields */
}Expand description
The GetNotificationChannelVerificationCode request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRequired. The notification channel for which a verification code is to be generated and retrieved. This must name a channel that is already verified; if the specified channel is not verified, the request will fail.
expire_time: Option<Timestamp>The desired expiration time. If specified, the API will guarantee that the returned code will not be valid after the specified timestamp; however, the API cannot guarantee that the returned code will be valid for at least as long as the requested time (the API puts an upper bound on the amount of time for which a code may be valid). If omitted, a default expiration will be used, which may be less than the max permissible expiration (so specifying an expiration may extend the code’s lifetime over omitting an expiration, even though the API does impose an upper limit on the maximum expiration that is permitted).
Implementations§
Source§impl GetNotificationChannelVerificationCodeRequest
impl GetNotificationChannelVerificationCodeRequest
pub fn new() -> Self
Sourcepub fn set_expire_time<T>(self, v: T) -> Self
pub fn set_expire_time<T>(self, v: T) -> Self
Sets the value of expire_time.
Sourcepub fn set_or_clear_expire_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_expire_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of expire_time.
Trait Implementations§
Source§impl Clone for GetNotificationChannelVerificationCodeRequest
impl Clone for GetNotificationChannelVerificationCodeRequest
Source§fn clone(&self) -> GetNotificationChannelVerificationCodeRequest
fn clone(&self) -> GetNotificationChannelVerificationCodeRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GetNotificationChannelVerificationCodeRequest
impl Default for GetNotificationChannelVerificationCodeRequest
Source§fn default() -> GetNotificationChannelVerificationCodeRequest
fn default() -> GetNotificationChannelVerificationCodeRequest
Source§impl PartialEq for GetNotificationChannelVerificationCodeRequest
impl PartialEq for GetNotificationChannelVerificationCodeRequest
Source§fn eq(&self, other: &GetNotificationChannelVerificationCodeRequest) -> bool
fn eq(&self, other: &GetNotificationChannelVerificationCodeRequest) -> bool
self and other values to be equal, and is used by ==.