Struct oxide_auth::primitives::grant::Extensions [−][src]
pub struct Extensions { /* fields omitted */ }Expand description
Links one or several GrantExtension instances to their respective data.
This also serves as a clean interface for both frontend and backend to reliably and conveniently manipulate or query the stored data sets.
Implementations
Create a new extension store.
Set the stored content for a GrantExtension instance.
Set content for an extension without a corresponding instance.
Retrieve the stored data of an instance.
This removes the data from the store to avoid possible mixups and to allow a copyless retrieval of bigger data strings.
pub fn public(&self) -> PublicExtensions<'_>ⓘNotable traits for PublicExtensions<'a>impl<'a> Iterator for PublicExtensions<'a> type Item = (&'a str, Option<&'a str>);
pub fn public(&self) -> PublicExtensions<'_>ⓘNotable traits for PublicExtensions<'a>impl<'a> Iterator for PublicExtensions<'a> type Item = (&'a str, Option<&'a str>);
impl<'a> Iterator for PublicExtensions<'a> type Item = (&'a str, Option<&'a str>);Iterate of the public extensions whose presence and content is not secret.
pub fn private(&self) -> PrivateExtensions<'_>ⓘNotable traits for PrivateExtensions<'a>impl<'a> Iterator for PrivateExtensions<'a> type Item = (&'a str, Option<&'a str>);
pub fn private(&self) -> PrivateExtensions<'_>ⓘNotable traits for PrivateExtensions<'a>impl<'a> Iterator for PrivateExtensions<'a> type Item = (&'a str, Option<&'a str>);
impl<'a> Iterator for PrivateExtensions<'a> type Item = (&'a str, Option<&'a str>);Iterate of the private extensions whose presence and content must not be revealed.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for Extensions
impl Send for Extensions
impl Sync for Extensions
impl Unpin for Extensions
impl UnwindSafe for Extensions
Blanket Implementations
Mutably borrows from an owned value. Read more