pub struct MispClient { /* private fields */ }Implementations§
Source§impl MispClient
impl MispClient
pub fn new( base_url: impl Into<String>, api_key: impl Into<String>, verify_ssl: bool, ) -> Self
pub fn with_timeout( base_url: impl Into<String>, api_key: impl Into<String>, verify_ssl: bool, timeout: Duration, ) -> Self
pub async fn get(&self, endpoint: &str) -> Result<Value, MispError>
pub async fn post( &self, endpoint: &str, body: Option<Value>, ) -> Result<Value, MispError>
pub async fn delete(&self, endpoint: &str) -> Result<Value, MispError>
Trait Implementations§
Source§impl Clone for MispClient
impl Clone for MispClient
Source§fn clone(&self) -> MispClient
fn clone(&self) -> MispClient
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 MispClient
impl !RefUnwindSafe for MispClient
impl Send for MispClient
impl Sync for MispClient
impl Unpin for MispClient
impl !UnwindSafe for MispClient
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