pub struct DevSession {
pub webid: String,
pub pubkey: Option<String>,
pub is_admin: bool,
}Expand description
Dev-mode session — ergonomic handle a consumer crate can plug into its request-processing pipeline in place of NIP-98/OIDC verification during tests or local development. The bypass is only constructable via explicit allow, never through a header the client supplies.
Fields§
§webid: String§pubkey: Option<String>§is_admin: boolTrait Implementations§
Source§impl Clone for DevSession
impl Clone for DevSession
Source§fn clone(&self) -> DevSession
fn clone(&self) -> DevSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DevSession
impl RefUnwindSafe for DevSession
impl Send for DevSession
impl Sync for DevSession
impl Unpin for DevSession
impl UnsafeUnpin for DevSession
impl UnwindSafe for DevSession
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