pub struct OAuth2Client {
pub client_id: String,
pub client_secret_hash: String,
pub client_secret: String,
pub redirect_uris: Vec<String>,
pub grant_types: Vec<String>,
pub scope: Vec<String>,
pub public_client: bool,
}Expand description
OAuth2 client registration record. OAuth2 客户端注册记录。
Fields§
§client_id: StringClient identifier. 客户端标识。
client_secret_hash: StringStored Argon2 PHC string. Never log this value. 存储的 Argon2 PHC 串。禁止写入日志。
client_secret: StringTransient plaintext used only at registration; never serialized. 仅注册时使用的明文,永不序列化。
redirect_uris: Vec<String>Allowed redirect URIs (exact match). 允许的重定向 URI(精确匹配)。
grant_types: Vec<String>Supported grant types. 支持的授权类型。
scope: Vec<String>Allowed scopes. 允许的权限范围。
public_client: boolPublic client: no secret; PKCE required. 公共客户端:无密钥;必须 PKCE。
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 (const: unstable) · 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 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 UnsafeUnpin for OAuth2Client
impl UnwindSafe for OAuth2Client
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