pub struct EconomicsCheckInput {}Expand description
The input of economics.check: nothing to narrow; the check is over the repository.
Unknown fields are refused rather than ignored, so a caller who tries to scope the check
to a path learns that it cannot be scoped instead of reading a partial verdict as whole.
use majordomus_cli::economics::claims::EconomicsCheckInput;
let input: EconomicsCheckInput = serde_json::from_str("{}").unwrap();
assert_eq!(input, EconomicsCheckInput::default());
let narrowed = serde_json::from_str::<EconomicsCheckInput>(r#"{"path":"docs"}"#);
assert!(narrowed.is_err(), "the check is over the whole repository");Trait Implementations§
Source§impl BenchmarkCases for EconomicsCheckInput
impl BenchmarkCases for EconomicsCheckInput
Source§fn benchmark_cases(_: &CaseContext<'_>) -> Vec<NamedCase<Self>>
fn benchmark_cases(_: &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 EconomicsCheckInput
impl Clone for EconomicsCheckInput
Source§fn clone(&self) -> EconomicsCheckInput
fn clone(&self) -> EconomicsCheckInput
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 EconomicsCheckInput
impl Debug for EconomicsCheckInput
Source§impl Default for EconomicsCheckInput
impl Default for EconomicsCheckInput
Source§fn default() -> EconomicsCheckInput
fn default() -> EconomicsCheckInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EconomicsCheckInput
impl<'de> Deserialize<'de> for EconomicsCheckInput
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
impl Eq for EconomicsCheckInput
Source§impl JsonSchema for EconomicsCheckInput
impl JsonSchema for EconomicsCheckInput
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 PartialEq for EconomicsCheckInput
impl PartialEq for EconomicsCheckInput
Source§fn eq(&self, other: &EconomicsCheckInput) -> bool
fn eq(&self, other: &EconomicsCheckInput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EconomicsCheckInput
impl Serialize for EconomicsCheckInput
impl StructuralPartialEq for EconomicsCheckInput
Auto Trait Implementations§
impl Freeze for EconomicsCheckInput
impl RefUnwindSafe for EconomicsCheckInput
impl Send for EconomicsCheckInput
impl Sync for EconomicsCheckInput
impl Unpin for EconomicsCheckInput
impl UnsafeUnpin for EconomicsCheckInput
impl UnwindSafe for EconomicsCheckInput
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.