pub struct CtfApi<'a>(/* private fields */);Implementations§
Source§impl CtfApi<'_>
impl CtfApi<'_>
pub async fn profile(&self) -> Result<CtfUserProfile, HtbError>
pub async fn events(&self) -> Result<Vec<CtfEvent>, HtbError>
pub async fn event_details( &self, slug: &str, ) -> Result<CtfEventDetail, HtbError>
pub async fn event_data(&self, event_id: u64) -> Result<CtfEventData, HtbError>
pub async fn submit_flag( &self, challenge_id: u64, flag: &str, ) -> Result<CtfFlagResult, HtbError>
pub async fn download_file( &self, challenge_id: u64, ) -> Result<Vec<u8>, HtbError>
pub async fn container_start( &self, challenge_id: u64, ) -> Result<ActionResponse, HtbError>
pub async fn container_stop( &self, challenge_id: u64, ) -> Result<ActionResponse, HtbError>
pub async fn scoreboard(&self, event_id: u64) -> Result<CtfScoreboard, HtbError>
pub async fn solves(&self, event_id: u64) -> Result<Vec<CtfSolve>, HtbError>
pub async fn challenge_solves( &self, challenge_id: u64, ) -> Result<Vec<CtfChallengeSolve>, HtbError>
pub async fn team_overview( &self, team_id: u64, ) -> Result<CtfTeamOverview, HtbError>
pub async fn associate_challenge( &self, challenge_id: u64, user_id: u64, ) -> Result<ActionResponse, HtbError>
pub async fn disassociate_challenge( &self, challenge_id: u64, user_id: u64, ) -> Result<ActionResponse, HtbError>
pub async fn set_challenge_progress( &self, challenge_id: u64, status: Option<&str>, ) -> Result<(), HtbError>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CtfApi<'a>
impl<'a> !UnwindSafe for CtfApi<'a>
impl<'a> Freeze for CtfApi<'a>
impl<'a> Send for CtfApi<'a>
impl<'a> Sync for CtfApi<'a>
impl<'a> Unpin for CtfApi<'a>
impl<'a> UnsafeUnpin for CtfApi<'a>
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