pub enum YamlLoadError {
FileNotFound(String),
ParseError(String),
MissingField(String),
InvalidConfig(String),
CustomCodeDetected(String),
}Expand description
Errors for YAML loading
Variants§
FileNotFound(String)
File not found
ParseError(String)
Parse error
MissingField(String)
Missing required field
InvalidConfig(String)
Invalid configuration
CustomCodeDetected(String)
Custom code detected (PROHIBITED)
Trait Implementations§
Source§impl Clone for YamlLoadError
impl Clone for YamlLoadError
Source§fn clone(&self) -> YamlLoadError
fn clone(&self) -> YamlLoadError
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 YamlLoadError
impl Debug for YamlLoadError
Source§impl Display for YamlLoadError
impl Display for YamlLoadError
Source§impl Error for YamlLoadError
impl Error for YamlLoadError
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 YamlLoadError
impl PartialEq for YamlLoadError
impl Eq for YamlLoadError
impl StructuralPartialEq for YamlLoadError
Auto Trait Implementations§
impl Freeze for YamlLoadError
impl RefUnwindSafe for YamlLoadError
impl Send for YamlLoadError
impl Sync for YamlLoadError
impl Unpin for YamlLoadError
impl UnsafeUnpin for YamlLoadError
impl UnwindSafe for YamlLoadError
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.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP