pub struct PersonaError {
pub file: String,
pub field: String,
pub message: String,
}Expand description
A persona file that failed validation.
Names the file (its source label and path), the field (dotted, such as
output.cases or evals[1]) and what is wrong with it.
Fields§
§file: String§field: String§message: StringImplementations§
Trait Implementations§
Source§impl Clone for PersonaError
impl Clone for PersonaError
Source§impl Debug for PersonaError
impl Debug for PersonaError
Source§impl Display for PersonaError
impl Display for PersonaError
impl Eq for PersonaError
Source§impl Error for PersonaError
impl Error for PersonaError
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<PersonaError> for AgentError
impl From<PersonaError> for AgentError
Source§fn from(source: PersonaError) -> Self
fn from(source: PersonaError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PersonaError
impl PartialEq for PersonaError
impl StructuralPartialEq for PersonaError
Auto Trait Implementations§
impl Forget for PersonaError
impl Freeze for PersonaError
impl Move for PersonaError
impl RefUnwindSafe for PersonaError
impl Send for PersonaErrorwhere
RawVecInner: Send,
impl Sync for PersonaErrorwhere
RawVecInner: Sync,
impl Unpin for PersonaError
impl UnsafeUnpin for PersonaError
impl UnwindSafe for PersonaErrorwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.