pub struct CreateOAuthApplicationRequest {
pub name: String,
pub callback_url: String,
pub scopes: Option<String>,
pub public: Option<bool>,
}Fields§
§name: StringThe name of the new OAuth application
callback_url: StringThe callback URL of the new OAuth application
scopes: Option<String>Define the allowed scopes for the new OAuth applications that dictate the user payload of the OAuth user info endpoint. Available scopes are profile, email, public_metadata, private_metadata. Provide the requested scopes as a string, separated by spaces.
public: Option<bool>If true, this client is public and cannot securely store a client secret. Only the authorization code flow with proof key for code exchange (PKCE) may be used. Public clients cannot be updated to be confidential clients, and vice versa.
Implementations§
Source§impl CreateOAuthApplicationRequest
impl CreateOAuthApplicationRequest
pub fn new(name: String, callback_url: String) -> CreateOAuthApplicationRequest
Trait Implementations§
Source§impl Clone for CreateOAuthApplicationRequest
impl Clone for CreateOAuthApplicationRequest
Source§fn clone(&self) -> CreateOAuthApplicationRequest
fn clone(&self) -> CreateOAuthApplicationRequest
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<'de> Deserialize<'de> for CreateOAuthApplicationRequest
impl<'de> Deserialize<'de> for CreateOAuthApplicationRequest
Source§fn 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
Source§impl PartialEq for CreateOAuthApplicationRequest
impl PartialEq for CreateOAuthApplicationRequest
Source§fn eq(&self, other: &CreateOAuthApplicationRequest) -> bool
fn eq(&self, other: &CreateOAuthApplicationRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateOAuthApplicationRequest
Auto Trait Implementations§
impl Freeze for CreateOAuthApplicationRequest
impl RefUnwindSafe for CreateOAuthApplicationRequest
impl Send for CreateOAuthApplicationRequest
impl Sync for CreateOAuthApplicationRequest
impl Unpin for CreateOAuthApplicationRequest
impl UnwindSafe for CreateOAuthApplicationRequest
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