pub struct CreateOAuthClientParams {
pub client_name: String,
pub redirect_uris: Vec<String>,
pub client_uri: Option<String>,
pub grant_types: Option<Vec<OAuthClientGrantType>>,
pub response_types: Option<Vec<OAuthClientResponseType>>,
pub scope: Option<String>,
}Expand description
Parameters for creating an OAuth client (admin).
Fields§
§client_name: String§redirect_uris: Vec<String>§client_uri: Option<String>§grant_types: Option<Vec<OAuthClientGrantType>>§response_types: Option<Vec<OAuthClientResponseType>>§scope: Option<String>Implementations§
Source§impl CreateOAuthClientParams
impl CreateOAuthClientParams
Sourcepub fn new(client_name: &str, redirect_uris: Vec<String>) -> Self
pub fn new(client_name: &str, redirect_uris: Vec<String>) -> Self
Create params with required fields.
Sourcepub fn client_uri(self, uri: &str) -> Self
pub fn client_uri(self, uri: &str) -> Self
Set the client URI.
Sourcepub fn grant_types(self, types: Vec<OAuthClientGrantType>) -> Self
pub fn grant_types(self, types: Vec<OAuthClientGrantType>) -> Self
Set the grant types.
Sourcepub fn response_types(self, types: Vec<OAuthClientResponseType>) -> Self
pub fn response_types(self, types: Vec<OAuthClientResponseType>) -> Self
Set the response types.
Trait Implementations§
Source§impl Clone for CreateOAuthClientParams
impl Clone for CreateOAuthClientParams
Source§fn clone(&self) -> CreateOAuthClientParams
fn clone(&self) -> CreateOAuthClientParams
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 CreateOAuthClientParams
impl Debug for CreateOAuthClientParams
Auto Trait Implementations§
impl Freeze for CreateOAuthClientParams
impl RefUnwindSafe for CreateOAuthClientParams
impl Send for CreateOAuthClientParams
impl Sync for CreateOAuthClientParams
impl Unpin for CreateOAuthClientParams
impl UnsafeUnpin for CreateOAuthClientParams
impl UnwindSafe for CreateOAuthClientParams
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