pub struct AttributesClient { /* private fields */ }Implementations§
Source§impl AttributesClient
impl AttributesClient
pub fn new(client: MispClient) -> Self
pub async fn get(&self, id: &str) -> Result<Attribute, MispError>
pub async fn search( &self, query: AttributeSearchQuery, ) -> Result<Vec<Attribute>, MispError>
pub async fn search_by_value( &self, value: &str, ) -> Result<Vec<Attribute>, MispError>
pub async fn search_by_type( &self, attr_type: &str, ) -> Result<Vec<Attribute>, MispError>
pub async fn describe_types(&self) -> Result<AttributeTypes, MispError>
pub async fn correlations( &self, value: &str, ) -> Result<Vec<AttributeCorrelation>, MispError>
Trait Implementations§
Source§impl Clone for AttributesClient
impl Clone for AttributesClient
Source§fn clone(&self) -> AttributesClient
fn clone(&self) -> AttributesClient
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 AttributesClient
impl !RefUnwindSafe for AttributesClient
impl Send for AttributesClient
impl Sync for AttributesClient
impl Unpin for AttributesClient
impl !UnwindSafe for AttributesClient
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