#[non_exhaustive]pub struct FinishOAuthRequest {
pub account_connector: String,
pub params: Option<Params>,
/* private fields */
}Expand description
Message for finishing an OAuth flow.
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.account_connector: StringRequired. The resource name of the AccountConnector in the format
projects/*/locations/*/accountConnectors/*.
params: Option<Params>The params returned by OAuth flow redirect.
Implementations§
Source§impl FinishOAuthRequest
impl FinishOAuthRequest
Sourcepub fn set_account_connector<T: Into<String>>(self, v: T) -> Self
pub fn set_account_connector<T: Into<String>>(self, v: T) -> Self
Sets the value of account_connector.
§Example
let x = FinishOAuthRequest::new().set_account_connector(format!("projects/{project_id}/locations/{location_id}/accountConnectors/{account_connector_id}"));Sourcepub fn set_params<T: Into<Option<Params>>>(self, v: T) -> Self
pub fn set_params<T: Into<Option<Params>>>(self, v: T) -> Self
Sets the value of params.
Note that all the setters affecting params are mutually
exclusive.
§Example
use google_cloud_developerconnect_v1::model::finish_o_auth_request::OAuthParams;
let x = FinishOAuthRequest::new().set_params(Some(
google_cloud_developerconnect_v1::model::finish_o_auth_request::Params::OauthParams(OAuthParams::default().into())));Sourcepub fn oauth_params(&self) -> Option<&Box<OAuthParams>>
pub fn oauth_params(&self) -> Option<&Box<OAuthParams>>
The value of params
if it holds a OauthParams, None if the field is not set or
holds a different branch.
Sourcepub fn set_oauth_params<T: Into<Box<OAuthParams>>>(self, v: T) -> Self
pub fn set_oauth_params<T: Into<Box<OAuthParams>>>(self, v: T) -> Self
Sets the value of params
to hold a OauthParams.
Note that all the setters affecting params are
mutually exclusive.
§Example
use google_cloud_developerconnect_v1::model::finish_o_auth_request::OAuthParams;
let x = FinishOAuthRequest::new().set_oauth_params(OAuthParams::default()/* use setters */);
assert!(x.oauth_params().is_some());
assert!(x.google_oauth_params().is_none());Sourcepub fn google_oauth_params(&self) -> Option<&Box<GoogleOAuthParams>>
pub fn google_oauth_params(&self) -> Option<&Box<GoogleOAuthParams>>
The value of params
if it holds a GoogleOauthParams, None if the field is not set or
holds a different branch.
Sourcepub fn set_google_oauth_params<T: Into<Box<GoogleOAuthParams>>>(
self,
v: T,
) -> Self
pub fn set_google_oauth_params<T: Into<Box<GoogleOAuthParams>>>( self, v: T, ) -> Self
Sets the value of params
to hold a GoogleOauthParams.
Note that all the setters affecting params are
mutually exclusive.
§Example
use google_cloud_developerconnect_v1::model::finish_o_auth_request::GoogleOAuthParams;
let x = FinishOAuthRequest::new().set_google_oauth_params(GoogleOAuthParams::default()/* use setters */);
assert!(x.google_oauth_params().is_some());
assert!(x.oauth_params().is_none());Trait Implementations§
Source§impl Clone for FinishOAuthRequest
impl Clone for FinishOAuthRequest
Source§fn clone(&self) -> FinishOAuthRequest
fn clone(&self) -> FinishOAuthRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FinishOAuthRequest
impl Debug for FinishOAuthRequest
Source§impl Default for FinishOAuthRequest
impl Default for FinishOAuthRequest
Source§fn default() -> FinishOAuthRequest
fn default() -> FinishOAuthRequest
Source§impl Message for FinishOAuthRequest
impl Message for FinishOAuthRequest
Source§impl PartialEq for FinishOAuthRequest
impl PartialEq for FinishOAuthRequest
impl StructuralPartialEq for FinishOAuthRequest
Auto Trait Implementations§
impl Freeze for FinishOAuthRequest
impl RefUnwindSafe for FinishOAuthRequest
impl Send for FinishOAuthRequest
impl Sync for FinishOAuthRequest
impl Unpin for FinishOAuthRequest
impl UnsafeUnpin for FinishOAuthRequest
impl UnwindSafe for FinishOAuthRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request