pub struct MetadataMatch { /* private fields */ }Expand description
One caller-defined metadata value a task must hold.
The location is a top-level metadata key — which may itself contain dots, such as
orchestrator.follow-up — and zero or more nested object keys below it. The match holds
when the value there is a JSON string equal to value, case-sensitively;
a number, a boolean, an array, an object, a missing key and a path through a non-object
all fail it.
Neither the key nor a nested segment may be empty, which is checked wherever one is built, deserialized included, so a source handed one never has to ask what an empty location means.
Implementations§
Source§impl MetadataMatch
impl MetadataMatch
Trait Implementations§
Source§impl Clone for MetadataMatch
impl Clone for MetadataMatch
Source§impl Debug for MetadataMatch
impl Debug for MetadataMatch
Source§impl<'de> Deserialize<'de> for MetadataMatch
impl<'de> Deserialize<'de> for MetadataMatch
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MetadataMatch
Source§impl JsonSchema for MetadataMatch
impl JsonSchema for MetadataMatch
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 MetadataMatch
impl PartialEq for MetadataMatch
Source§impl Serialize for MetadataMatch
impl Serialize for MetadataMatch
impl StructuralPartialEq for MetadataMatch
Auto Trait Implementations§
impl Freeze for MetadataMatch
impl RefUnwindSafe for MetadataMatch
impl Send for MetadataMatch
impl Sync for MetadataMatch
impl Unpin for MetadataMatch
impl UnsafeUnpin for MetadataMatch
impl UnwindSafe for MetadataMatch
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