pub struct PreRegistered { /* private fields */ }Expand description
Credentials issued to this client ahead of time.
Implementations§
Source§impl PreRegistered
impl PreRegistered
Sourcepub fn new(client_id: &str, client_secret: Option<&str>) -> Self
pub fn new(client_id: &str, client_secret: Option<&str>) -> Self
A client id, and a secret when the client is confidential.
Sourcepub fn issued_by(self, issuer: impl Into<String>) -> Self
pub fn issued_by(self, issuer: impl Into<String>) -> Self
These credentials, as issued by the authorization server issuer.
Credentials are specific to the server that issued them. With an issuer recorded, a resource that later names a different authorization server is an error rather than a reason to present an id the new server never issued.
Trait Implementations§
Source§impl Clone for PreRegistered
impl Clone for PreRegistered
Auto Trait Implementations§
impl Freeze for PreRegistered
impl RefUnwindSafe for PreRegistered
impl Send for PreRegistered
impl Sync for PreRegistered
impl Unpin for PreRegistered
impl UnsafeUnpin for PreRegistered
impl UnwindSafe for PreRegistered
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