pub struct PublicContestConfig {Show 13 fields
pub id: i64,
pub owner_id: Option<i64>,
pub name_ru: String,
pub name_en: String,
pub statements_url_ru: String,
pub editorial_url_ru: String,
pub statements_url_en: String,
pub editorial_url_en: String,
pub starts_at: DateTime<Utc>,
pub ends_at: DateTime<Utc>,
pub hidden: bool,
pub upsolving_opened: bool,
pub hide_solutions: bool,
}Expand description
Contest config visible to all users
Fields§
§id: i64Contest’s id
owner_id: Option<i64>Contest’s owner’s user id (optional)
name_ru: StringContest’s name (ru)
name_en: StringContest’s name (en)
statements_url_ru: StringStatements url (ru)
editorial_url_ru: StringEditorial url (ru)
statements_url_en: StringStatements url (en)
editorial_url_en: StringEditorial url (en)
starts_at: DateTime<Utc>Timestamp of contest beginning
ends_at: DateTime<Utc>Timestamp of contest ending
Is contest hidden
upsolving_opened: boolIs upsolving opened
hide_solutions: boolHide solutions’ files
Trait Implementations§
Source§impl Clone for PublicContestConfig
impl Clone for PublicContestConfig
Source§fn clone(&self) -> PublicContestConfig
fn clone(&self) -> PublicContestConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PublicContestConfig
impl Debug for PublicContestConfig
Source§impl<'de> Deserialize<'de> for PublicContestConfig
impl<'de> Deserialize<'de> for PublicContestConfig
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
Auto Trait Implementations§
impl Freeze for PublicContestConfig
impl RefUnwindSafe for PublicContestConfig
impl Send for PublicContestConfig
impl Sync for PublicContestConfig
impl Unpin for PublicContestConfig
impl UnsafeUnpin for PublicContestConfig
impl UnwindSafe for PublicContestConfig
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