pub struct ClientAuthProjection {
pub version: u8,
pub default_guard: String,
pub guards: BTreeMap<String, ClientGuardState>,
}Expand description
Request-scoped authentication projection matching ClientAuth::export (version: 1).
Fields§
§version: u8§default_guard: String§guards: BTreeMap<String, ClientGuardState>Implementations§
Source§impl ClientAuthProjection
impl ClientAuthProjection
pub fn guest(default_guard: impl Into<String>) -> Self
pub fn authenticated( default_guard: impl Into<String>, user: ClientAuthUser, ) -> Self
pub fn with_guard( self, name: impl Into<String>, user: Option<ClientAuthUser>, ) -> Self
Trait Implementations§
Source§impl Clone for ClientAuthProjection
impl Clone for ClientAuthProjection
Source§impl Debug for ClientAuthProjection
impl Debug for ClientAuthProjection
Source§impl PartialEq for ClientAuthProjection
impl PartialEq for ClientAuthProjection
Source§impl Serialize for ClientAuthProjection
impl Serialize for ClientAuthProjection
impl StructuralPartialEq for ClientAuthProjection
Auto Trait Implementations§
impl Forget for ClientAuthProjection
impl Freeze for ClientAuthProjectionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, ClientGuardState> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, ClientGuardState)>>: Freeze,
impl Move for ClientAuthProjection
impl RefUnwindSafe for ClientAuthProjection
impl Send for ClientAuthProjectionwhere
RawVecInner: Send,
NodeRef<Owned, String, ClientGuardState, LeafOrInternal>: Send,
BoxRaw<(String, ClientGuardState)>: Send,
impl Sync for ClientAuthProjectionwhere
RawVecInner: Sync,
NodeRef<Owned, String, ClientGuardState, LeafOrInternal>: Sync,
BoxRaw<(String, ClientGuardState)>: Sync,
impl Unpin for ClientAuthProjection
impl UnsafeUnpin for ClientAuthProjectionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, ClientGuardState> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, ClientGuardState)>>: UnsafeUnpin,
impl UnwindSafe for ClientAuthProjection
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoViewData for Twhere
T: Serialize,
impl<T> IntoViewData for Twhere
T: Serialize,
Source§fn into_view_data(self) -> ViewData
fn into_view_data(self) -> ViewData
Converts the value into view data.