Struct mutiny_core::auth::MutinyAuthClient
source · pub struct MutinyAuthClient {
pub auth: AuthManager,
/* private fields */
}
Fields§
§auth: AuthManager
Implementations§
source§impl MutinyAuthClient
impl MutinyAuthClient
pub fn new( auth: AuthManager, lnurl_client: Arc<LnUrlClient>, logger: Arc<MutinyLogger>, url: String ) -> Self
pub async fn authenticate(&self) -> Result<(), MutinyError>
pub fn is_authenticated(&self) -> Option<String>
pub async fn request( &self, method: Method, url: Url, body: Option<Value> ) -> Result<Response, MutinyError>
Auto Trait Implementations§
impl !RefUnwindSafe for MutinyAuthClient
impl Send for MutinyAuthClient
impl Sync for MutinyAuthClient
impl Unpin for MutinyAuthClient
impl !UnwindSafe for MutinyAuthClient
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