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 Freeze for AttackKBApi
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