pub enum ParamType {
Duration,
Bytes,
Boolean,
Integer,
Text,
}Expand description
The data type of a restore-replica configuration parameter, which
determines how its value is validated. duration and bytes values must
be non-negative integers (a count of seconds and of bytes, respectively);
integer accepts any whole number, positive or negative; boolean is a
JSON boolean; text is a JSON string.
JSON schema
{
"description": "The data type of a restore-replica configuration parameter, which\ndetermines how its value is validated. `duration` and `bytes` values must\nbe non-negative integers (a count of seconds and of bytes, respectively);\n`integer` accepts any whole number, positive or negative; `boolean` is a\nJSON boolean; `text` is a JSON string.",
"type": "string",
"enum": [
"duration",
"bytes",
"boolean",
"integer",
"text"
]
}Variants§
Trait Implementations§
impl Copy for ParamType
Source§impl<'de> Deserialize<'de> for ParamType
impl<'de> Deserialize<'de> for ParamType
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 ParamType
Source§impl Ord for ParamType
impl Ord for ParamType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ParamType
impl PartialOrd for ParamType
impl StructuralPartialEq for ParamType
Source§impl TryFrom<&String> for ParamType
impl TryFrom<&String> for ParamType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ParamType
impl RefUnwindSafe for ParamType
impl Send for ParamType
impl Sync for ParamType
impl Unpin for ParamType
impl UnsafeUnpin for ParamType
impl UnwindSafe for ParamType
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