pub struct GrantConfig { /* private fields */ }Expand description
Grant verification settings for a Multi/Owner deployment.
Implementations§
Source§impl GrantConfig
impl GrantConfig
Sourcepub fn new(
audience: &str,
schemes: AcceptedSchemes,
relying_parties: Vec<RelyingParty>,
) -> Result<Self, ServerError>
pub fn new( audience: &str, schemes: AcceptedSchemes, relying_parties: Vec<RelyingParty>, ) -> Result<Self, ServerError>
Build production settings. Loopback audiences and relying parties are refused.
§Errors
invalid_argument if the verifier settings are invalid.
Sourcepub fn new_allowing_loopback(
audience: &str,
schemes: AcceptedSchemes,
relying_parties: Vec<RelyingParty>,
) -> Result<Self, ServerError>
pub fn new_allowing_loopback( audience: &str, schemes: AcceptedSchemes, relying_parties: Vec<RelyingParty>, ) -> Result<Self, ServerError>
Build settings for tests and local development, allowing loopback origins.
§Errors
invalid_argument if the verifier settings are invalid.
Sourcepub fn schemes(&self) -> AcceptedSchemes
pub fn schemes(&self) -> AcceptedSchemes
Advertised schemes in SPEC-WRITE-GRANTS §4 order.
Trait Implementations§
Source§impl Clone for GrantConfig
impl Clone for GrantConfig
Auto Trait Implementations§
impl Freeze for GrantConfig
impl RefUnwindSafe for GrantConfig
impl Send for GrantConfig
impl Sync for GrantConfig
impl Unpin for GrantConfig
impl UnsafeUnpin for GrantConfig
impl UnwindSafe for GrantConfig
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