Struct ngrok_api::types::EndpointOAuthFacebook
source · [−]pub struct EndpointOAuthFacebook {
pub client_id: Option<String>,
pub client_secret: Option<String>,
pub scopes: Vec<String>,
pub email_addresses: Vec<String>,
pub email_domains: Vec<String>,
}
Fields
client_id: Option<String>
the OAuth app client ID. retrieve it from the identity provider’s dashboard where you created your own OAuth app. optional. if unspecified, ngrok will use its own managed oauth application which has additional restrictions. see the OAuth module docs for more details. if present, client_secret must be present as well.
client_secret: Option<String>
the OAuth app client secret. retrieve if from the identity provider’s dashboard
where you created your own OAuth app. optional, see all of the caveats in the
docs for client_id
.
scopes: Vec<String>
a list of provider-specific OAuth scopes with the permissions your OAuth app
would like to ask for. these may not be set if you are using the ngrok-managed
oauth app (i.e. you must pass both client_id
and client_secret
to set
scopes)
email_addresses: Vec<String>
a list of email addresses of users authenticated by identity provider who are allowed access to the endpoint
email_domains: Vec<String>
a list of email domains of users authenticated by identity provider who are allowed access to the endpoint
Trait Implementations
sourceimpl Clone for EndpointOAuthFacebook
impl Clone for EndpointOAuthFacebook
sourcefn clone(&self) -> EndpointOAuthFacebook
fn clone(&self) -> EndpointOAuthFacebook
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EndpointOAuthFacebook
impl Debug for EndpointOAuthFacebook
sourceimpl Default for EndpointOAuthFacebook
impl Default for EndpointOAuthFacebook
sourcefn default() -> EndpointOAuthFacebook
fn default() -> EndpointOAuthFacebook
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for EndpointOAuthFacebook
impl<'de> Deserialize<'de> for EndpointOAuthFacebook
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for EndpointOAuthFacebook
impl Serialize for EndpointOAuthFacebook
Auto Trait Implementations
impl RefUnwindSafe for EndpointOAuthFacebook
impl Send for EndpointOAuthFacebook
impl Sync for EndpointOAuthFacebook
impl Unpin for EndpointOAuthFacebook
impl UnwindSafe for EndpointOAuthFacebook
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more