pub struct AtpAgent {
pub service: String,
pub session: Option<Session>,
}
Fields§
§service: String
§session: Option<Session>
Trait Implementations§
Source§impl Agent for AtpAgent
impl Agent for AtpAgent
fn new(url: String) -> AtpAgent
fn login<'async_trait>(
self,
identifier: String,
password: String,
) -> Pin<Box<dyn Future<Output = Result<AtpAgent, Box<dyn Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
fn refresh_session<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
fn get<'async_trait>(
self,
lexicon: String,
parameters: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, Box<dyn Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
Auto Trait Implementations§
impl Freeze for AtpAgent
impl RefUnwindSafe for AtpAgent
impl Send for AtpAgent
impl Sync for AtpAgent
impl Unpin for AtpAgent
impl UnwindSafe for AtpAgent
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