pub struct SessionsApi { /* private fields */ }Expand description
Sessions API client.
Implementations§
Source§impl SessionsApi
impl SessionsApi
Sourcepub fn new(http: HttpClient) -> Self
pub fn new(http: HttpClient) -> Self
Create a new Sessions API client.
Sourcepub async fn create(&self, req: &CreateSessionRequest) -> Result<Session>
pub async fn create(&self, req: &CreateSessionRequest) -> Result<Session>
Sourcepub async fn create_with(
&self,
options: SessionCreateOptions,
) -> Result<Session>
pub async fn create_with( &self, options: SessionCreateOptions, ) -> Result<Session>
Create a new session using convenience options.
This maps to the same wire format/query semantics as Self::create.
§Errors
Returns an error if the request fails.
Sourcepub async fn status(&self) -> Result<SessionStatus>
pub async fn status(&self) -> Result<SessionStatus>
Sourcepub async fn diff(&self, id: &str) -> Result<SessionDiff>
pub async fn diff(&self, id: &str) -> Result<SessionDiff>
Sourcepub async fn diff_since_message(
&self,
id: &str,
message_id: &str,
) -> Result<SessionDiff>
pub async fn diff_since_message( &self, id: &str, message_id: &str, ) -> Result<SessionDiff>
Trait Implementations§
Source§impl Clone for SessionsApi
impl Clone for SessionsApi
Source§fn clone(&self) -> SessionsApi
fn clone(&self) -> SessionsApi
Returns a duplicate of the value. Read more
1.0.0 · 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 SessionsApi
impl !RefUnwindSafe for SessionsApi
impl Send for SessionsApi
impl Sync for SessionsApi
impl Unpin for SessionsApi
impl !UnwindSafe for SessionsApi
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