pub struct EvidenceClaimInput {
pub claim: String,
}Expand description
One claim of the matrix, named by the id it is declared under.
The id is required, and there is no spelling of this input that means “every claim” —
that question belongs to evidence.report. An id the matrix does not declare is a
not-found from the handler rather than an empty proof.
use majordomus_cli::capability::builtin::evidence::EvidenceClaimInput;
let input: EvidenceClaimInput =
serde_json::from_str(r#"{"claim": "evidence-both-directions"}"#).unwrap();
assert_eq!(input.claim, "evidence-both-directions");
// no id is a usage error, never a request for all of them
assert!(serde_json::from_str::<EvidenceClaimInput>("{}").is_err());Fields§
§claim: StringThe claim id, as docs/CLAIMS.yaml spells it.
Trait Implementations§
Source§impl BenchmarkCases for EvidenceClaimInput
impl BenchmarkCases for EvidenceClaimInput
Source§fn benchmark_cases(ctx: &CaseContext<'_>) -> Vec<NamedCase<Self>>
fn benchmark_cases(ctx: &CaseContext<'_>) -> Vec<NamedCase<Self>>
The cases, in a stable order. An empty list means “nothing to benchmark in this
repository”, which the coverage check reports as missing.
Source§fn benchmark_cases_json(ctx: &CaseContext<'_>) -> Vec<NamedCase<Value>>
fn benchmark_cases_json(ctx: &CaseContext<'_>) -> Vec<NamedCase<Value>>
The cases as JSON, the shape every runner serialises from.
Source§impl Clone for EvidenceClaimInput
impl Clone for EvidenceClaimInput
Source§fn clone(&self) -> EvidenceClaimInput
fn clone(&self) -> EvidenceClaimInput
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 EvidenceClaimInput
impl Debug for EvidenceClaimInput
Source§impl<'de> Deserialize<'de> for EvidenceClaimInput
impl<'de> Deserialize<'de> for EvidenceClaimInput
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 JsonSchema for EvidenceClaimInput
impl JsonSchema for EvidenceClaimInput
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 EvidenceClaimInput
impl RefUnwindSafe for EvidenceClaimInput
impl Send for EvidenceClaimInput
impl Sync for EvidenceClaimInput
impl Unpin for EvidenceClaimInput
impl UnsafeUnpin for EvidenceClaimInput
impl UnwindSafe for EvidenceClaimInput
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