#[non_exhaustive]pub enum ReportError {
#[non_exhaustive] NonAsciiTitle {
agent: AgentName,
field: &'static str,
value: String,
},
#[non_exhaustive] BannerTooSmall {
requested: usize,
minimum: usize,
},
}Expand description
Error returned by ReportConfig::new_checked when validation fails.
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.
#[non_exhaustive]NonAsciiTitle
An agent_titles value contains non-ASCII characters.
The field name is either "display_name" or "title",
and agent identifies which agent’s entry failed validation.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]BannerTooSmall
banner_width is below the minimum required for meaningful rendering.
The minimum is 8: one | border + 6 content bytes + one | border.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Trait Implementations§
Source§impl Clone for ReportError
impl Clone for ReportError
Source§fn clone(&self) -> ReportError
fn clone(&self) -> ReportError
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 ReportError
impl Debug for ReportError
Source§impl Display for ReportError
impl Display for ReportError
Source§impl PartialEq for ReportError
impl PartialEq for ReportError
impl Eq for ReportError
impl StructuralPartialEq for ReportError
Auto Trait Implementations§
impl Freeze for ReportError
impl RefUnwindSafe for ReportError
impl Send for ReportError
impl Sync for ReportError
impl Unpin for ReportError
impl UnsafeUnpin for ReportError
impl UnwindSafe for ReportError
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