pub struct ILert {
pub api_token: Option<String>,
pub auth_user: Option<String>,
pub auth_psw: Option<String>,
pub http_client: Client,
/* private fields */
}
Fields§
§api_token: Option<String>
§auth_user: Option<String>
§auth_psw: Option<String>
§http_client: Client
Implementations§
source§impl ILert
impl ILert
pub fn new() -> ILertResult<ILert>
pub fn new_with_opts( host: Option<&str>, timeout_sec: Option<u64> ) -> ILertResult<ILert>
pub fn auth_via_token(&mut self, api_token: &str) -> ILertResult<&mut ILert>
pub fn auth_via_user( &mut self, auth_user: &str, auth_psw: &str ) -> ILertResult<&mut ILert>
pub fn build_url(&self, path: &str) -> String
pub fn get(&self) -> GetRequestBuilder<'_>
pub fn post(&self) -> PostRequestBuilder<'_>
👎Deprecated since 3.0.0: please use
create()
insteadpub fn create(&self) -> PostRequestBuilder<'_>
pub fn update(&self) -> PutRequestBuilder<'_>
pub fn delete(&self) -> DeleteRequestBuilder<'_>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ILert
impl Send for ILert
impl Sync for ILert
impl Unpin for ILert
impl !UnwindSafe for ILert
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