pub struct AuthenticationApi {
pub base_url: String,
pub client: Client,
}
Fields§
§base_url: String
§client: Client
Implementations§
source§impl AuthenticationApi
impl AuthenticationApi
pub fn new(base_url: &str, client: Client) -> Self
pub async fn login( &self, user_id: &str, password: &str ) -> Result<TicketEntry, Error>
pub async fn validate_ticket( &self, ticket: &str ) -> Result<TicketValidationResult, Error>
pub async fn logout(&self, ticket: &str) -> Result<(), Error>
Auto Trait Implementations§
impl !RefUnwindSafe for AuthenticationApi
impl Send for AuthenticationApi
impl Sync for AuthenticationApi
impl Unpin for AuthenticationApi
impl !UnwindSafe for AuthenticationApi
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