#[non_exhaustive]pub struct GenerateFetchAccessTokenResponse {
pub access_token: String,
pub expire_time: Option<Timestamp>,
/* private fields */
}Available on crate feature
feature-online-store-service only.Expand description
Response message for FeatureOnlineStoreService.GenerateFetchAccessToken.
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.access_token: StringThe OAuth 2.0 access token.
expire_time: Option<Timestamp>Token expiration time. This is always set
Implementations§
Source§impl GenerateFetchAccessTokenResponse
impl GenerateFetchAccessTokenResponse
pub fn new() -> Self
Sourcepub fn set_access_token<T: Into<String>>(self, v: T) -> Self
pub fn set_access_token<T: Into<String>>(self, v: T) -> Self
Sets the value of access_token.
§Example
ⓘ
let x = GenerateFetchAccessTokenResponse::new().set_access_token("example");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 = GenerateFetchAccessTokenResponse::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 = GenerateFetchAccessTokenResponse::new().set_or_clear_expire_time(Some(Timestamp::default()/* use setters */));
let x = GenerateFetchAccessTokenResponse::new().set_or_clear_expire_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for GenerateFetchAccessTokenResponse
impl Clone for GenerateFetchAccessTokenResponse
Source§fn clone(&self) -> GenerateFetchAccessTokenResponse
fn clone(&self) -> GenerateFetchAccessTokenResponse
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 GenerateFetchAccessTokenResponse
impl Default for GenerateFetchAccessTokenResponse
Source§fn default() -> GenerateFetchAccessTokenResponse
fn default() -> GenerateFetchAccessTokenResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for GenerateFetchAccessTokenResponse
impl PartialEq for GenerateFetchAccessTokenResponse
Source§fn eq(&self, other: &GenerateFetchAccessTokenResponse) -> bool
fn eq(&self, other: &GenerateFetchAccessTokenResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GenerateFetchAccessTokenResponse
Auto Trait Implementations§
impl Freeze for GenerateFetchAccessTokenResponse
impl RefUnwindSafe for GenerateFetchAccessTokenResponse
impl Send for GenerateFetchAccessTokenResponse
impl Sync for GenerateFetchAccessTokenResponse
impl Unpin for GenerateFetchAccessTokenResponse
impl UnwindSafe for GenerateFetchAccessTokenResponse
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