pub struct ChallengeBundleSpec {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: ChallengeExecutionSpec,
pub datasets: DatasetsSpec,
pub metric_schema: MetricSchemaSpec,
}Expand description
Parsed spec.json contract for a challenge bundle.
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: ChallengeExecutionSpec§datasets: DatasetsSpec§metric_schema: MetricSchemaSpecMetric definitions and ranking metadata used to interpret evaluator output.
Implementations§
Source§impl ChallengeBundleSpec
impl ChallengeBundleSpec
Sourcepub fn target(&self, target: &TargetName) -> Option<&ChallengeTargetSpec>
pub fn target(&self, target: &TargetName) -> Option<&ChallengeTargetSpec>
Look up one 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 challenge is unambiguous.
Sourcepub fn official_evaluation_may_expose_private_material(&self) -> bool
pub fn official_evaluation_may_expose_private_material(&self) -> bool
Return whether official runner diagnostics may contain private benchmark material.
Trait Implementations§
Source§impl Clone for ChallengeBundleSpec
impl Clone for ChallengeBundleSpec
Source§fn clone(&self) -> ChallengeBundleSpec
fn clone(&self) -> ChallengeBundleSpec
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 ChallengeBundleSpec
impl Debug for ChallengeBundleSpec
Source§impl<'de> Deserialize<'de> for ChallengeBundleSpec
impl<'de> Deserialize<'de> for ChallengeBundleSpec
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 ChallengeBundleSpec
impl JsonSchema for ChallengeBundleSpec
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 moreSource§impl Serialize for ChallengeBundleSpec
impl Serialize for ChallengeBundleSpec
Source§impl Validate for ChallengeBundleSpec
impl Validate for ChallengeBundleSpec
Source§fn validate_into(
&self,
__garde_user_ctx: &Self::Context,
__garde_path: &mut dyn FnMut() -> Path,
__garde_report: &mut Report,
)
fn validate_into( &self, __garde_user_ctx: &Self::Context, __garde_path: &mut dyn FnMut() -> Path, __garde_report: &mut Report, )
Validates
Self, aggregating all validation errors into Report.Auto Trait Implementations§
impl Freeze for ChallengeBundleSpec
impl RefUnwindSafe for ChallengeBundleSpec
impl Send for ChallengeBundleSpec
impl Sync for ChallengeBundleSpec
impl Unpin for ChallengeBundleSpec
impl UnsafeUnpin for ChallengeBundleSpec
impl UnwindSafe for ChallengeBundleSpec
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