pub struct CodeChallenge {Show 19 fields
pub id: String,
pub name: String,
pub slug: String,
pub url: String,
pub category: String,
pub description: String,
pub tags: Vec<String>,
pub languages: Vec<String>,
pub rank: Option<Rank>,
pub created_by: Author,
pub published_at: String,
pub approved_by: Option<Author>,
pub approved_at: String,
pub total_completed: u64,
pub total_attempts: u64,
pub total_stars: u64,
pub vote_score: u64,
pub contributors_wanted: bool,
pub unresolved: Unresolved,
}
Expand description
Represents a code challenge
Read more at Codewars documentation
Fields§
§id: String
ID of the kata
name: String
Name of the kata
slug: String
Slug of the kata
url: String
URL of the kata
category: String
Category of the kata
description: String
Description of the kata in Markdown
Array of tags associated with the kata
languages: Vec<String>
Array of language names the kata is available in
rank: Option<Rank>
Object describing the rank of the kata if approved
created_by: Author
The author of the kata
published_at: String
Date and time when the kata was first published
approved_by: Option<Author>
The approver of the kata
approved_at: String
Date and time when the kata was approved
total_completed: u64
Total number of completions
total_attempts: u64
Total number of attempts
total_stars: u64
The number of bookmarks
vote_score: u64
The sum of all votes casted
contributors_wanted: bool
Whether to allow contributions
unresolved: Unresolved
Object with fields for the number of unresolved issues and suggestions respectively
Trait Implementations§
Source§impl Clone for CodeChallenge
impl Clone for CodeChallenge
Source§fn clone(&self) -> CodeChallenge
fn clone(&self) -> CodeChallenge
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 moreSource§impl Debug for CodeChallenge
impl Debug for CodeChallenge
Source§impl Default for CodeChallenge
impl Default for CodeChallenge
Source§fn default() -> CodeChallenge
fn default() -> CodeChallenge
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CodeChallenge
impl<'de> Deserialize<'de> for CodeChallenge
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for CodeChallenge
impl Hash for CodeChallenge
Source§impl PartialEq for CodeChallenge
impl PartialEq for CodeChallenge
Source§impl Serialize for CodeChallenge
impl Serialize for CodeChallenge
impl Eq for CodeChallenge
impl StructuralPartialEq for CodeChallenge
Auto Trait Implementations§
impl Freeze for CodeChallenge
impl RefUnwindSafe for CodeChallenge
impl Send for CodeChallenge
impl Sync for CodeChallenge
impl Unpin for CodeChallenge
impl UnwindSafe for CodeChallenge
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.