#[non_exhaustive]pub struct PairingKey {
pub key: String,
pub expire_time: Option<Timestamp>,
/* private fields */
}Expand description
Key to be shared with SSE service provider to establish global handshake.
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.key: StringOutput only. Key value.
expire_time: Option<Timestamp>Output only. Timestamp in UTC of when this resource is considered expired. It expires 7 days after creation.
Implementations§
Source§impl PairingKey
impl PairingKey
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.
§Example
ⓘ
use wkt::Timestamp;
let x = PairingKey::new().set_expire_time(Timestamp::default()/* use setters */);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.
§Example
ⓘ
use wkt::Timestamp;
let x = PairingKey::new().set_or_clear_expire_time(Some(Timestamp::default()/* use setters */));
let x = PairingKey::new().set_or_clear_expire_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for PairingKey
impl Clone for PairingKey
Source§fn clone(&self) -> PairingKey
fn clone(&self) -> PairingKey
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 PairingKey
impl Debug for PairingKey
Source§impl Default for PairingKey
impl Default for PairingKey
Source§fn default() -> PairingKey
fn default() -> PairingKey
Returns the “default value” for a type. Read more
Source§impl PartialEq for PairingKey
impl PartialEq for PairingKey
Source§fn eq(&self, other: &PairingKey) -> bool
fn eq(&self, other: &PairingKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PairingKey
Auto Trait Implementations§
impl Freeze for PairingKey
impl RefUnwindSafe for PairingKey
impl Send for PairingKey
impl Sync for PairingKey
impl Unpin for PairingKey
impl UnsafeUnpin for PairingKey
impl UnwindSafe for PairingKey
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