#[non_exhaustive]pub struct FinishOAuthResponse {
pub exchange_error: Option<ExchangeError>,
/* private fields */
}Expand description
Message for responding to finishing an OAuth flow.
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.exchange_error: Option<ExchangeError>The error resulted from exchanging OAuth tokens from the service provider.
Implementations§
Source§impl FinishOAuthResponse
impl FinishOAuthResponse
pub fn new() -> Self
Sourcepub fn set_exchange_error<T>(self, v: T) -> Selfwhere
T: Into<ExchangeError>,
pub fn set_exchange_error<T>(self, v: T) -> Selfwhere
T: Into<ExchangeError>,
Sets the value of exchange_error.
§Example
ⓘ
use google_cloud_developerconnect_v1::model::ExchangeError;
let x = FinishOAuthResponse::new().set_exchange_error(ExchangeError::default()/* use setters */);Sourcepub fn set_or_clear_exchange_error<T>(self, v: Option<T>) -> Selfwhere
T: Into<ExchangeError>,
pub fn set_or_clear_exchange_error<T>(self, v: Option<T>) -> Selfwhere
T: Into<ExchangeError>,
Sets or clears the value of exchange_error.
§Example
ⓘ
use google_cloud_developerconnect_v1::model::ExchangeError;
let x = FinishOAuthResponse::new().set_or_clear_exchange_error(Some(ExchangeError::default()/* use setters */));
let x = FinishOAuthResponse::new().set_or_clear_exchange_error(None::<ExchangeError>);Trait Implementations§
Source§impl Clone for FinishOAuthResponse
impl Clone for FinishOAuthResponse
Source§fn clone(&self) -> FinishOAuthResponse
fn clone(&self) -> FinishOAuthResponse
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 Debug for FinishOAuthResponse
impl Debug for FinishOAuthResponse
Source§impl Default for FinishOAuthResponse
impl Default for FinishOAuthResponse
Source§fn default() -> FinishOAuthResponse
fn default() -> FinishOAuthResponse
Returns the “default value” for a type. Read more
Source§impl Message for FinishOAuthResponse
impl Message for FinishOAuthResponse
Source§impl PartialEq for FinishOAuthResponse
impl PartialEq for FinishOAuthResponse
impl StructuralPartialEq for FinishOAuthResponse
Auto Trait Implementations§
impl Freeze for FinishOAuthResponse
impl RefUnwindSafe for FinishOAuthResponse
impl Send for FinishOAuthResponse
impl Sync for FinishOAuthResponse
impl Unpin for FinishOAuthResponse
impl UnsafeUnpin for FinishOAuthResponse
impl UnwindSafe for FinishOAuthResponse
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