#[non_exhaustive]pub enum ParseChangeError {
MissingEquals {
argument: String,
},
UnknownPath {
path: String,
},
InvalidValue {
path: String,
expected: &'static str,
},
Repeated {
path: String,
},
UnsupportedType {
path: String,
},
}Expand description
Why a --set argument could not be parsed.
Values are never quoted back, since a value may be a secret reference.
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.
MissingEquals
The argument has no =.
UnknownPath
The path is not a field of the configuration schema.
InvalidValue
The value does not read as the field’s type.
Repeated
A field that is not a list was given more than once.
UnsupportedType
The field has a type this version of the client cannot write.
Trait Implementations§
Source§impl Clone for ParseChangeError
impl Clone for ParseChangeError
Source§impl Debug for ParseChangeError
impl Debug for ParseChangeError
Source§impl Display for ParseChangeError
impl Display for ParseChangeError
impl Eq for ParseChangeError
Source§impl Error for ParseChangeError
impl Error for ParseChangeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ParseChangeError
impl PartialEq for ParseChangeError
impl StructuralPartialEq for ParseChangeError
Auto Trait Implementations§
impl Forget for ParseChangeError
impl Freeze for ParseChangeError
impl Move for ParseChangeError
impl RefUnwindSafe for ParseChangeError
impl Send for ParseChangeError
impl Sync for ParseChangeErrorwhere
RawVecInner: Sync,
impl Unpin for ParseChangeError
impl UnsafeUnpin for ParseChangeError
impl UnwindSafe for ParseChangeError
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.