#[non_exhaustive]pub struct GetNotificationChannelVerificationCodeResponse {
pub code: String,
pub expire_time: Option<Timestamp>,
/* private fields */
}Expand description
The GetNotificationChannelVerificationCode request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.code: StringThe verification code, which may be used to verify other channels that have an equivalent identity (i.e. other channels of the same type with the same fingerprint such as other email channels with the same email address or other sms channels with the same number).
expire_time: Option<Timestamp>The expiration time associated with the code that was returned. If an expiration was provided in the request, this is the minimum of the requested expiration in the request and the max permitted expiration.
Implementations§
Source§impl GetNotificationChannelVerificationCodeResponse
impl GetNotificationChannelVerificationCodeResponse
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 GetNotificationChannelVerificationCodeResponse
impl Clone for GetNotificationChannelVerificationCodeResponse
Source§fn clone(&self) -> GetNotificationChannelVerificationCodeResponse
fn clone(&self) -> GetNotificationChannelVerificationCodeResponse
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 Default for GetNotificationChannelVerificationCodeResponse
impl Default for GetNotificationChannelVerificationCodeResponse
Source§fn default() -> GetNotificationChannelVerificationCodeResponse
fn default() -> GetNotificationChannelVerificationCodeResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for GetNotificationChannelVerificationCodeResponse
impl PartialEq for GetNotificationChannelVerificationCodeResponse
Source§fn eq(&self, other: &GetNotificationChannelVerificationCodeResponse) -> bool
fn eq(&self, other: &GetNotificationChannelVerificationCodeResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GetNotificationChannelVerificationCodeResponse
Auto Trait Implementations§
impl Freeze for GetNotificationChannelVerificationCodeResponse
impl RefUnwindSafe for GetNotificationChannelVerificationCodeResponse
impl Send for GetNotificationChannelVerificationCodeResponse
impl Sync for GetNotificationChannelVerificationCodeResponse
impl Unpin for GetNotificationChannelVerificationCodeResponse
impl UnwindSafe for GetNotificationChannelVerificationCodeResponse
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