pub struct AllowlistError {
pub line: usize,
pub column: usize,
pub code: &'static str,
pub message: String,
}Expand description
Why an allowlist could not be read: the first problem found.
Fields§
§line: usizeThe 1-based line and column, in characters; both 0 when the problem has no position, such as an unreadable file.
column: usize§code: &'static strA stable code, as source diagnostics use: source.io,
source.encoding, jsonc.*, shape.* or ref.duplicate.
message: StringTrait Implementations§
Source§impl Clone for AllowlistError
impl Clone for AllowlistError
Source§impl Debug for AllowlistError
impl Debug for AllowlistError
Source§impl Display for AllowlistError
impl Display for AllowlistError
impl Eq for AllowlistError
Source§impl Error for AllowlistError
impl Error for AllowlistError
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 AllowlistError
impl PartialEq for AllowlistError
impl StructuralPartialEq for AllowlistError
Auto Trait Implementations§
impl Freeze for AllowlistError
impl RefUnwindSafe for AllowlistError
impl Send for AllowlistError
impl Sync for AllowlistError
impl Unpin for AllowlistError
impl UnsafeUnpin for AllowlistError
impl UnwindSafe for AllowlistError
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