pub struct AuthV2Config { /* private fields */ }Expand description
The trusted audience and Single deployment’s expected repository. In Multi mode the pipeline ignores this repository field and verifies against the resolved request identity instead.
Implementations§
Source§impl AuthV2Config
impl AuthV2Config
Sourcepub fn new(
audience: impl Into<String>,
repository: impl Into<String>,
) -> Result<Self, AuthError>
pub fn new( audience: impl Into<String>, repository: impl Into<String>, ) -> Result<Self, AuthError>
A configuration for audience, the deployment’s canonical HTTP(S)
origin, and repository, the repository identity it serves.
§Errors
audience is not a canonical origin.
Sourcepub fn repository(&self) -> &str
pub fn repository(&self) -> &str
The repository identity.
Trait Implementations§
Source§impl Clone for AuthV2Config
impl Clone for AuthV2Config
Source§impl Debug for AuthV2Config
impl Debug for AuthV2Config
impl Eq for AuthV2Config
Source§impl PartialEq for AuthV2Config
impl PartialEq for AuthV2Config
impl StructuralPartialEq for AuthV2Config
Auto Trait Implementations§
impl Freeze for AuthV2Config
impl RefUnwindSafe for AuthV2Config
impl Send for AuthV2Config
impl Sync for AuthV2Config
impl Unpin for AuthV2Config
impl UnsafeUnpin for AuthV2Config
impl UnwindSafe for AuthV2Config
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