pub struct SessionClaimsBuilder { /* private fields */ }Expand description
Builder for SessionClaims
Implementations§
Source§impl SessionClaimsBuilder
impl SessionClaimsBuilder
pub fn with_ttl(self, ttl_seconds: u64) -> Self
pub fn with_scope(self, scope: impl Into<String>) -> Self
pub fn with_metering_key(self, key: impl Into<String>) -> Self
pub fn with_deployment_id(self, id: impl Into<String>) -> Self
pub fn with_origin(self, origin: impl Into<String>) -> Self
pub fn with_client_ip(self, client_ip: impl Into<String>) -> Self
pub fn with_limits(self, limits: Limits) -> Self
pub fn with_plan(self, plan: impl Into<String>) -> Self
pub fn with_key_class(self, key_class: KeyClass) -> Self
pub fn with_jti(self, jti: impl Into<String>) -> Self
pub fn build(self) -> SessionClaims
Auto Trait Implementations§
impl Freeze for SessionClaimsBuilder
impl RefUnwindSafe for SessionClaimsBuilder
impl Send for SessionClaimsBuilder
impl Sync for SessionClaimsBuilder
impl Unpin for SessionClaimsBuilder
impl UnsafeUnpin for SessionClaimsBuilder
impl UnwindSafe for SessionClaimsBuilder
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