pub struct PropsError {
pub code: &'static str,
pub route: String,
pub path: String,
pub message: String,
pub typescript: Option<Box<PropsSource>>,
pub rust: Option<Box<PropsSource>>,
}Expand description
A bind or checked-value refusal. Diagnostics identify the route, declared path and both declarations whenever both sides have a field at that path.
Fields§
§code: &'static strStable BIND or RENDER code.
route: StringRoute being bound or rendered.
path: StringDeclared property path, including array indices at render.
message: StringSpecific incompatibility or value violation.
typescript: Option<Box<PropsSource>>TypeScript declaration, if present.
rust: Option<Box<PropsSource>>Rust declaration, if present.
Implementations§
Source§impl PropsError
impl PropsError
Sourcepub fn with_route(self, route: &str) -> PropsError
pub fn with_route(self, route: &str) -> PropsError
Attach the route to a derive-schema error discovered before binding.
Trait Implementations§
Source§impl Clone for PropsError
impl Clone for PropsError
Source§fn clone(&self) -> PropsError
fn clone(&self) -> PropsError
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 PropsError
impl Debug for PropsError
Source§impl Display for PropsError
impl Display for PropsError
impl Eq for PropsError
Source§impl Error for PropsError
impl Error for PropsError
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 PropsError
impl PartialEq for PropsError
impl StructuralPartialEq for PropsError
Auto Trait Implementations§
impl Freeze for PropsError
impl RefUnwindSafe for PropsError
impl Send for PropsError
impl Sync for PropsError
impl Unpin for PropsError
impl UnsafeUnpin for PropsError
impl UnwindSafe for PropsError
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