Struct oxide_auth::primitives::grant::Grant
source · pub struct Grant {
pub owner_id: String,
pub client_id: String,
pub scope: Scope,
pub redirect_uri: Url,
pub until: DateTime<Utc>,
pub extensions: Extensions,
}
Expand description
Owning copy of a grant.
This can be stored in a database without worrying about lifetimes or shared across thread
boundaries. A reference to this can be converted to a purely referential GrantRef
.
Fields§
§owner_id: String
Identifies the owner of the resource.
client_id: String
Identifies the client to which the grant was issued.
scope: Scope
The scope granted to the client.
redirect_uri: Url
The redirection uri under which the client resides. The url package does indeed seem to parse valid URIs as well.
until: DateTime<Utc>
Expiration date of the grant (Utc).
extensions: Extensions
Encoded extensions existing on this Grant
Trait Implementations§
source§impl PartialEq<Grant> for Grant
impl PartialEq<Grant> for Grant
impl Eq for Grant
impl StructuralEq for Grant
impl StructuralPartialEq for Grant
Auto Trait Implementations§
impl RefUnwindSafe for Grant
impl Send for Grant
impl Sync for Grant
impl Unpin for Grant
impl UnwindSafe for Grant
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