#[non_exhaustive]pub enum ValueType {
String,
Integer {
min: i64,
max: i64,
},
Boolean,
Enum {
variants: &'static [&'static str],
},
StringList,
SecretRef,
}Expand description
The type of a schema field, including any range or variant set.
Serialises with a kind tag, for example
{"kind": "integer", "min": 1, "max": 64}.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
String
A UTF-8 string.
Integer
An integer in min..=max.
Boolean
A boolean.
Enum
A string that must be one of a fixed set.
StringList
A list of strings.
SecretRef
An opaque reference to a secret held by a custody service.
This library never resolves it. Secret-reference fields are excluded
from the PublicConfig and its hash, and their
values are redacted in change lists.
Trait Implementations§
impl Copy for ValueType
impl Eq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations§
impl Forget for ValueType
impl Freeze for ValueType
impl Move for ValueType
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnsafeUnpin for ValueTypewhere
&'static [&'static str]: UnsafeUnpin,
impl UnwindSafe for ValueTypewhere
&'static [&'static str]: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.