Struct ngrok_api::types::EndpointOAuthGitHub
source · [−]pub struct EndpointOAuthGitHub {
pub client_id: Option<String>,
pub client_secret: Option<String>,
pub scopes: Vec<String>,
pub email_addresses: Vec<String>,
pub email_domains: Vec<String>,
pub teams: Vec<String>,
pub organizations: 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
teams: Vec<String>
a list of github teams identifiers. users will be allowed access to the endpoint
if they are a member of any of these teams. identifiers should be in the ‘slug’
format qualified with the org name, e.g. org-name/team-name
organizations: Vec<String>
a list of github org identifiers. users who are members of any of the listed organizations will be allowed access. identifiers should be the organization’s ‘slug’
Trait Implementations
sourceimpl Clone for EndpointOAuthGitHub
impl Clone for EndpointOAuthGitHub
sourcefn clone(&self) -> EndpointOAuthGitHub
fn clone(&self) -> EndpointOAuthGitHub
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 EndpointOAuthGitHub
impl Debug for EndpointOAuthGitHub
sourceimpl Default for EndpointOAuthGitHub
impl Default for EndpointOAuthGitHub
sourcefn default() -> EndpointOAuthGitHub
fn default() -> EndpointOAuthGitHub
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for EndpointOAuthGitHub
impl<'de> Deserialize<'de> for EndpointOAuthGitHub
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 EndpointOAuthGitHub
impl Serialize for EndpointOAuthGitHub
Auto Trait Implementations
impl RefUnwindSafe for EndpointOAuthGitHub
impl Send for EndpointOAuthGitHub
impl Sync for EndpointOAuthGitHub
impl Unpin for EndpointOAuthGitHub
impl UnwindSafe for EndpointOAuthGitHub
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