pub struct Personas<'a> { /* private fields */ }Expand description
/v1/personas.
Implementations§
Source§impl Personas<'_>
impl Personas<'_>
Sourcepub async fn list_with(&self, query: &[(&str, &str)]) -> Result<Page<Persona>>
pub async fn list_with(&self, query: &[(&str, &str)]) -> Result<Page<Persona>>
GET /v1/personas with query params (limit, domain).
Sourcepub async fn runs(&self, id: i64) -> Result<Page<Value>>
pub async fn runs(&self, id: i64) -> Result<Page<Value>>
GET /v1/personas/:id/runs — runs attributed to this persona.
Sourcepub async fn validate_totp(&self, body: Value) -> Result<Value>
pub async fn validate_totp(&self, body: Value) -> Result<Value>
POST /v1/personas/validate-totp — check a base32 seed (and optionally a
live code) without persisting anything. Body:
{totp_seed, code?, digits?, period?, algorithm?}.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Personas<'a>
impl<'a> !UnwindSafe for Personas<'a>
impl<'a> Freeze for Personas<'a>
impl<'a> Send for Personas<'a>
impl<'a> Sync for Personas<'a>
impl<'a> Unpin for Personas<'a>
impl<'a> UnsafeUnpin for Personas<'a>
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