pub struct ProjectionError(pub ProjectionErrorEnum);Expand description
Why a record could not be read into a node type, or a node type written into a record.
A public struct around a public enum, so the classification can grow without the struct changing. Every variant that concerns a node names it, so the failure points at one contextoid rather than at a snapshot.
Tuple Fields§
§0: ProjectionErrorEnumImplementations§
Source§impl ProjectionError
impl ProjectionError
pub const fn new(kind: ProjectionErrorEnum) -> Self
pub const fn kind(&self) -> &ProjectionErrorEnum
pub const fn WrongVariant( id: ContextoidId, expected: &'static str, found: &'static str, ) -> Self
pub const fn WrongPayload( id: ContextoidId, expected: &'static str, found: &'static str, ) -> Self
pub const fn MissingField(id: ContextoidId, field: &'static str) -> Self
pub const fn Unrecordable(id: ContextoidId, kind: &'static str) -> Self
pub const fn Scalar(id: ContextoidId, value: f64) -> Self
pub const fn Identity(id: IdentificationValue, rule: &'static str) -> Self
pub const fn Version(found: u16, supported: u16) -> Self
pub const fn Rejected(id: ContextoidId, rule: String) -> Self
pub const fn Frozen(id: IdentificationValue) -> Self
Trait Implementations§
Source§impl Clone for ProjectionError
impl Clone for ProjectionError
Source§impl Debug for ProjectionError
impl Debug for ProjectionError
Source§impl Display for ProjectionError
impl Display for ProjectionError
Source§impl Error for ProjectionError
impl Error for ProjectionError
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 ProjectionError
impl PartialEq for ProjectionError
impl StructuralPartialEq for ProjectionError
Auto Trait Implementations§
impl Freeze for ProjectionError
impl RefUnwindSafe for ProjectionError
impl Send for ProjectionError
impl Sync for ProjectionError
impl Unpin for ProjectionError
impl UnsafeUnpin for ProjectionError
impl UnwindSafe for ProjectionError
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