pub struct OAuth2Client {
pub client_id: String,
pub client_secret: String,
pub redirect_uris: Vec<String>,
pub grant_types: Vec<String>,
pub scope: Vec<String>,
}Expand description
OAuth2 Client Information | OAuth2 客户端信息
Represents a registered OAuth2 client application with its credentials and configuration. 表示一个已注册的 OAuth2 客户端应用程序及其凭据和配置。
Fields§
§client_id: StringUnique identifier for the client | 客户端的唯一标识符
client_secret: StringSecret key for client authentication | 客户端认证的密钥
redirect_uris: Vec<String>Allowed redirect URIs (whitelist) | 允许的回调 URI(白名单)
grant_types: Vec<String>Supported grant types (e.g., “authorization_code”, “refresh_token”) 支持的授权类型(例如:“authorization_code”、“refresh_token”)
scope: Vec<String>Permitted scopes for this client | 此客户端允许的权限范围
Trait Implementations§
Source§impl Clone for OAuth2Client
impl Clone for OAuth2Client
Source§fn clone(&self) -> OAuth2Client
fn clone(&self) -> OAuth2Client
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OAuth2Client
impl Debug for OAuth2Client
Source§impl<'de> Deserialize<'de> for OAuth2Client
impl<'de> Deserialize<'de> for OAuth2Client
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
Auto Trait Implementations§
impl Freeze for OAuth2Client
impl RefUnwindSafe for OAuth2Client
impl Send for OAuth2Client
impl Sync for OAuth2Client
impl Unpin for OAuth2Client
impl UnwindSafe for OAuth2Client
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)