Struct attackerkb_api_rs::AttackKBApi
source · pub struct AttackKBApi { /* private fields */ }
Expand description
API client, API token needs to be provided when creating a new instance.
Implementations§
source§impl AttackKBApi
impl AttackKBApi
source§impl AttackKBApi
impl AttackKBApi
sourcepub async fn topics(
&self,
query: &TopicsParameters
) -> Result<KBResponse, Error>
pub async fn topics( &self, query: &TopicsParameters ) -> Result<KBResponse, Error>
Return all topics.
sourcepub async fn topic(&self, id: impl Into<String>) -> Result<KBResponse, Error>
pub async fn topic(&self, id: impl Into<String>) -> Result<KBResponse, Error>
Return a specific topic.
sourcepub async fn assessments(
&self,
query: &AssessmentsParameters
) -> Result<KBResponse, Error>
pub async fn assessments( &self, query: &AssessmentsParameters ) -> Result<KBResponse, Error>
Return all assessments.
sourcepub async fn assessment(
&self,
id: impl Into<String>
) -> Result<KBResponse, Error>
pub async fn assessment( &self, id: impl Into<String> ) -> Result<KBResponse, Error>
Return a specific assessment.
sourcepub async fn contributors(
&self,
query: &ContributorsParameters
) -> Result<KBResponse, Error>
pub async fn contributors( &self, query: &ContributorsParameters ) -> Result<KBResponse, Error>
Return all contributors.
sourcepub async fn contributor(
&self,
id: impl Into<String>
) -> Result<KBResponse, Error>
pub async fn contributor( &self, id: impl Into<String> ) -> Result<KBResponse, Error>
Return a specific contributor.
Trait Implementations§
source§impl Clone for AttackKBApi
impl Clone for AttackKBApi
source§fn clone(&self) -> AttackKBApi
fn clone(&self) -> AttackKBApi
Returns a copy 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 !RefUnwindSafe for AttackKBApi
impl Send for AttackKBApi
impl Sync for AttackKBApi
impl Unpin for AttackKBApi
impl !UnwindSafe for AttackKBApi
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