pub struct IntentError {
pub path: Vec<String>,
pub message: String,
}Expand description
A structured Intent validation diagnostic: where the problem is and what it is.
Fields§
§path: Vec<String>Address into the Intent (for example path or targets[1]).
message: StringHuman-readable description of the violation.
Implementations§
Source§impl IntentError
impl IntentError
Sourcepub fn path_string(&self) -> String
pub fn path_string(&self) -> String
Render the path as a dotted address, or <root> when empty.
Trait Implementations§
Source§impl Clone for IntentError
impl Clone for IntentError
Source§fn clone(&self) -> IntentError
fn clone(&self) -> IntentError
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 IntentError
impl Debug for IntentError
Source§impl Display for IntentError
impl Display for IntentError
impl Eq for IntentError
Source§impl PartialEq for IntentError
impl PartialEq for IntentError
Source§fn eq(&self, other: &IntentError) -> bool
fn eq(&self, other: &IntentError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IntentError
Auto Trait Implementations§
impl Freeze for IntentError
impl RefUnwindSafe for IntentError
impl Send for IntentError
impl Sync for IntentError
impl Unpin for IntentError
impl UnsafeUnpin for IntentError
impl UnwindSafe for IntentError
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