pub struct GalaxiesClient { /* private fields */ }Implementations§
Source§impl GalaxiesClient
impl GalaxiesClient
pub fn new(client: MispClient) -> Self
pub async fn list(&self) -> Result<Vec<Galaxy>, MispError>
pub async fn get(&self, id: &str) -> Result<Galaxy, MispError>
pub async fn get_cluster( &self, cluster_id: &str, ) -> Result<GalaxyCluster, MispError>
pub async fn search_clusters( &self, query: ClusterSearchQuery, ) -> Result<Vec<GalaxyCluster>, MispError>
pub async fn search_clusters_by_value( &self, value: &str, ) -> Result<Vec<GalaxyCluster>, MispError>
pub async fn get_by_type( &self, galaxy_type: &str, ) -> Result<Option<Galaxy>, MispError>
pub async fn get_mitre_attack(&self) -> Result<Option<Galaxy>, MispError>
pub async fn get_threat_actors(&self) -> Result<Option<Galaxy>, MispError>
pub async fn get_malware(&self) -> Result<Option<Galaxy>, MispError>
pub async fn search_threat_actor( &self, name: &str, ) -> Result<Vec<GalaxyCluster>, MispError>
pub async fn search_attack_pattern( &self, name: &str, ) -> Result<Vec<GalaxyCluster>, MispError>
Trait Implementations§
Source§impl Clone for GalaxiesClient
impl Clone for GalaxiesClient
Source§fn clone(&self) -> GalaxiesClient
fn clone(&self) -> GalaxiesClient
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 GalaxiesClient
impl !RefUnwindSafe for GalaxiesClient
impl Send for GalaxiesClient
impl Sync for GalaxiesClient
impl Unpin for GalaxiesClient
impl !UnwindSafe for GalaxiesClient
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