pub struct PropsWarning {
pub code: &'static str,
pub route: String,
pub path: String,
pub message: String,
pub typescript: Option<PropsSource>,
pub rust: Option<PropsSource>,
}Expand description
An extra Rust field is visible at bind as a warning, and never encoded.
Fields§
§code: &'static strStable warning code (BIND-201).
route: StringBound route.
path: StringExtra field’s path.
message: StringExplanation of the ignored Rust field.
typescript: Option<PropsSource>Closest TypeScript declaration, when available.
rust: Option<PropsSource>Extra Rust field’s declaration.
Trait Implementations§
Source§impl Clone for PropsWarning
impl Clone for PropsWarning
Source§fn clone(&self) -> PropsWarning
fn clone(&self) -> PropsWarning
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 PropsWarning
impl Debug for PropsWarning
Source§impl Display for PropsWarning
impl Display for PropsWarning
impl Eq for PropsWarning
Source§impl PartialEq for PropsWarning
impl PartialEq for PropsWarning
impl StructuralPartialEq for PropsWarning
Auto Trait Implementations§
impl Freeze for PropsWarning
impl RefUnwindSafe for PropsWarning
impl Send for PropsWarning
impl Sync for PropsWarning
impl Unpin for PropsWarning
impl UnsafeUnpin for PropsWarning
impl UnwindSafe for PropsWarning
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