#[non_exhaustive]pub struct BTreeMapValue {
pub default: Option<Value>,
pub type_: ParamType,
}Expand description
Describes one configurable parameter that a replica of a restore intent accepts.
JSON schema
{
"description": "Describes one configurable parameter that a replica of a restore intent\naccepts.",
"type": "object",
"required": [
"type"
],
"properties": {
"default": {
"description": "The value used when the parameter is left unset. `None` means an\nunset parameter is sent as JSON `null` rather than a default value."
},
"type": {
"description": "The parameter's data type, which determines how its value is\nvalidated.",
"$ref": "#/components/schemas/ParamType"
}
}
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.default: Option<Value>The value used when the parameter is left unset. None means an
unset parameter is sent as JSON null rather than a default value.
type_: ParamTypeThe parameter’s data type, which determines how its value is validated.
Implementations§
Source§impl BTreeMapValue
impl BTreeMapValue
Sourcepub fn builder() -> BTreeMapValueBuilder
pub fn builder() -> BTreeMapValueBuilder
Create an instance of BTreeMapValue using the builder syntax
Trait Implementations§
Source§impl Clone for BTreeMapValue
impl Clone for BTreeMapValue
Source§fn clone(&self) -> BTreeMapValue
fn clone(&self) -> BTreeMapValue
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 BTreeMapValue
impl Debug for BTreeMapValue
Source§impl<'de> Deserialize<'de> for BTreeMapValue
impl<'de> Deserialize<'de> for BTreeMapValue
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
Auto Trait Implementations§
impl Freeze for BTreeMapValue
impl RefUnwindSafe for BTreeMapValue
impl Send for BTreeMapValue
impl Sync for BTreeMapValue
impl Unpin for BTreeMapValue
impl UnsafeUnpin for BTreeMapValue
impl UnwindSafe for BTreeMapValue
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