pub struct PublicChallengeBundleSpec {Show 17 fields
pub schema_version: i32,
pub challenge_name: ChallengeName,
pub challenge_title: String,
pub summary: LocalizedText,
pub keywords: Vec<ChallengeKeyword>,
pub solution: SolutionSpec,
pub targets: Vec<ChallengeTargetSpec>,
pub starts_at: String,
pub closes_at: Option<String>,
pub eligibility: ChallengeEligibilitySpec,
pub validation_submission_limit: Option<i64>,
pub official_submission_limit: Option<i64>,
pub visibility: ChallengeVisibilitySpec,
pub solution_publication: ChallengeSolutionPublicationPolicy,
pub execution: PublicChallengeExecutionSpec,
pub datasets: PublicDatasetsSpec,
pub metric_schema: MetricSchemaSpec,
}Expand description
Public projection of a challenge contract safe for unauthenticated clients.
Fields§
§schema_version: i32§challenge_name: ChallengeName§challenge_title: String§summary: LocalizedTextLocalized summary used in compact challenge catalog surfaces.
keywords: Vec<ChallengeKeyword>Required public keywords used by catalog search and filtering.
solution: SolutionSpec§targets: Vec<ChallengeTargetSpec>§starts_at: String§closes_at: Option<String>§eligibility: ChallengeEligibilitySpec§validation_submission_limit: Option<i64>§official_submission_limit: Option<i64>§visibility: ChallengeVisibilitySpec§solution_publication: ChallengeSolutionPublicationPolicy§execution: PublicChallengeExecutionSpec§datasets: PublicDatasetsSpec§metric_schema: MetricSchemaSpecMetric definitions and ranking metadata used to interpret evaluator output.
Implementations§
Source§impl PublicChallengeBundleSpec
impl PublicChallengeBundleSpec
Sourcepub fn target(&self, target: &TargetName) -> Option<&ChallengeTargetSpec>
pub fn target(&self, target: &TargetName) -> Option<&ChallengeTargetSpec>
Look up one public target declared by this challenge.
Sourcepub fn sole_target(&self) -> Option<&TargetName>
pub fn sole_target(&self) -> Option<&TargetName>
Return the only target name when a public challenge is unambiguous.
Trait Implementations§
Source§impl Clone for PublicChallengeBundleSpec
impl Clone for PublicChallengeBundleSpec
Source§fn clone(&self) -> PublicChallengeBundleSpec
fn clone(&self) -> PublicChallengeBundleSpec
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 PublicChallengeBundleSpec
impl Debug for PublicChallengeBundleSpec
Source§impl<'de> Deserialize<'de> for PublicChallengeBundleSpec
impl<'de> Deserialize<'de> for PublicChallengeBundleSpec
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 From<ChallengeBundleSpec> for PublicChallengeBundleSpec
impl From<ChallengeBundleSpec> for PublicChallengeBundleSpec
Source§fn from(spec: ChallengeBundleSpec) -> Self
fn from(spec: ChallengeBundleSpec) -> Self
Remove private benchmark locator metadata from a full challenge contract.
Source§impl JsonSchema for PublicChallengeBundleSpec
impl JsonSchema for PublicChallengeBundleSpec
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for PublicChallengeBundleSpec
impl RefUnwindSafe for PublicChallengeBundleSpec
impl Send for PublicChallengeBundleSpec
impl Sync for PublicChallengeBundleSpec
impl Unpin for PublicChallengeBundleSpec
impl UnsafeUnpin for PublicChallengeBundleSpec
impl UnwindSafe for PublicChallengeBundleSpec
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more