pub struct KeyValueConditions {
pub absent: Vec<String>,
pub present: Vec<String>,
pub values: Map<String, Value>,
}
Expand description
KeyValueConditions
JSON schema
{
"type": "object",
"properties": {
"absent": {
"type": "array",
"items": {
"type": "string"
}
},
"present": {
"type": "array",
"items": {
"type": "string"
}
},
"values": {
"type": "object",
"additionalProperties": true
}
}
}
Fields§
§absent: Vec<String>
§present: Vec<String>
§values: Map<String, Value>
Implementations§
Source§impl KeyValueConditions
impl KeyValueConditions
pub fn builder() -> KeyValueConditions
Trait Implementations§
Source§impl Clone for KeyValueConditions
impl Clone for KeyValueConditions
Source§fn clone(&self) -> KeyValueConditions
fn clone(&self) -> KeyValueConditions
Returns a duplicate of the value. Read more
1.0.0 · 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 KeyValueConditions
impl Debug for KeyValueConditions
Source§impl Default for KeyValueConditions
impl Default for KeyValueConditions
Source§impl<'de> Deserialize<'de> for KeyValueConditions
impl<'de> Deserialize<'de> for KeyValueConditions
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<&KeyValueConditions> for KeyValueConditions
impl From<&KeyValueConditions> for KeyValueConditions
Source§fn from(value: &KeyValueConditions) -> Self
fn from(value: &KeyValueConditions) -> Self
Converts to this type from the input type.
Source§impl From<KeyValueConditions> for KeyValueConditions
impl From<KeyValueConditions> for KeyValueConditions
Source§fn from(value: KeyValueConditions) -> Self
fn from(value: KeyValueConditions) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for KeyValueConditions
impl JsonSchema for KeyValueConditions
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl Serialize for KeyValueConditions
impl Serialize for KeyValueConditions
Source§impl TryFrom<KeyValueConditions> for KeyValueConditions
impl TryFrom<KeyValueConditions> for KeyValueConditions
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: KeyValueConditions) -> Result<Self, ConversionError>
fn try_from(value: KeyValueConditions) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for KeyValueConditions
impl RefUnwindSafe for KeyValueConditions
impl Send for KeyValueConditions
impl Sync for KeyValueConditions
impl Unpin for KeyValueConditions
impl UnwindSafe for KeyValueConditions
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