pub struct SessionsResource { /* private fields */ }Expand description
Creates and revokes scoped sessions.
Implementations§
Source§impl SessionsResource
impl SessionsResource
Sourcepub async fn create(&self, body: impl Serialize) -> Result<JsonObject>
pub async fn create(&self, body: impl Serialize) -> Result<JsonObject>
Creates a scoped session.
Sourcepub async fn list(&self, query: &[(&str, &str)]) -> Result<JsonObject>
pub async fn list(&self, query: &[(&str, &str)]) -> Result<JsonObject>
Returns the session list envelope.
Sourcepub async fn revoke_all(&self) -> Result<JsonObject>
pub async fn revoke_all(&self) -> Result<JsonObject>
Revokes every session.
Auto Trait Implementations§
impl !RefUnwindSafe for SessionsResource
impl !UnwindSafe for SessionsResource
impl Freeze for SessionsResource
impl Send for SessionsResource
impl Sync for SessionsResource
impl Unpin for SessionsResource
impl UnsafeUnpin for SessionsResource
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