pub struct RegistrationResponse {
pub client_id: String,
pub client_secret: Option<String>,
pub client_secret_expires_at: Option<u64>,
pub registration_access_token: Option<String>,
pub registration_client_uri: Option<String>,
pub client_id_issued_at: Option<u64>,
pub metadata: HashMap<String, Value>,
}Expand description
Client registration response per RFC 7591 Section 3.2
Contains the registered client credentials and metadata returned by the authorization server.
Fields§
§client_id: StringClient identifier (REQUIRED)
client_secret: Option<String>Client secret (if confidential client)
This will be None for public clients (e.g., native apps, SPAs)
client_secret_expires_at: Option<u64>Client secret expiration time (seconds since epoch, 0 = never)
registration_access_token: Option<String>Registration access token (for updating/deleting registration)
registration_client_uri: Option<String>Registration client URI (for PUT/DELETE operations)
client_id_issued_at: Option<u64>Client ID issued at timestamp
metadata: HashMap<String, Value>All registered metadata (echo of request + server additions)
Trait Implementations§
Source§impl Clone for RegistrationResponse
impl Clone for RegistrationResponse
Source§fn clone(&self) -> RegistrationResponse
fn clone(&self) -> RegistrationResponse
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 RegistrationResponse
impl Debug for RegistrationResponse
Source§impl<'de> Deserialize<'de> for RegistrationResponse
impl<'de> Deserialize<'de> for RegistrationResponse
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 RegistrationResponse
impl RefUnwindSafe for RegistrationResponse
impl Send for RegistrationResponse
impl Sync for RegistrationResponse
impl Unpin for RegistrationResponse
impl UnwindSafe for RegistrationResponse
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