#[non_exhaustive]pub enum ProfileError {
UnsupportedSelection,
InvalidField {
field: &'static str,
reason: BoundedText,
},
BudgetExceeded {
budget: &'static str,
},
UnknownProperty {
property: BoundedText,
},
TypeMismatch {
message: BoundedText,
},
UnsupportedRule {
reason: BoundedText,
},
InvalidXml {
reason: BoundedText,
},
}Expand description
Profile-specific error.
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.
UnsupportedSelection
Profile selection did not resolve to a supported profile.
InvalidField
A profile field failed validation.
BudgetExceeded
A rule expression exceeded a configured evaluation budget.
UnknownProperty
A rule referenced a property that does not exist on the model object.
Fields
§
property: BoundedTextProperty name.
TypeMismatch
A rule expression had a type mismatch.
Fields
§
message: BoundedTextBounded diagnostic message.
UnsupportedRule
A rule expression is not supported by the bounded IR.
Fields
§
reason: BoundedTextBounded reason string.
InvalidXml
Profile XML failed bounded parsing.
Fields
§
reason: BoundedTextBounded reason string.
Trait Implementations§
Source§impl Clone for ProfileError
impl Clone for ProfileError
Source§fn clone(&self) -> ProfileError
fn clone(&self) -> ProfileError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProfileError
impl Debug for ProfileError
Source§impl Display for ProfileError
impl Display for ProfileError
Source§impl Error for ProfileError
impl Error for ProfileError
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 From<ProfileError> for PdfvError
impl From<ProfileError> for PdfvError
Source§fn from(source: ProfileError) -> Self
fn from(source: ProfileError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProfileError
impl PartialEq for ProfileError
Source§fn eq(&self, other: &ProfileError) -> bool
fn eq(&self, other: &ProfileError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ProfileError
impl StructuralPartialEq for ProfileError
Auto Trait Implementations§
impl Freeze for ProfileError
impl RefUnwindSafe for ProfileError
impl Send for ProfileError
impl Sync for ProfileError
impl Unpin for ProfileError
impl UnsafeUnpin for ProfileError
impl UnwindSafe for ProfileError
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