Struct postcard::experimental::schema::NamedValue
source · pub struct NamedValue {
pub name: &'static str,
pub ty: &'static NamedType,
}
Expand description
A data type with a name - e.g. a field of a Struct
Fields§
§name: &'static str
The name of this value
ty: &'static NamedType
The type of this value
Trait Implementations§
source§impl Clone for NamedValue
impl Clone for NamedValue
source§fn clone(&self) -> NamedValue
fn clone(&self) -> NamedValue
Returns a copy of the value. Read more
1.0.0 · 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 NamedValue
impl Debug for NamedValue
source§impl Hash for NamedValue
impl Hash for NamedValue
source§impl PartialEq for NamedValue
impl PartialEq for NamedValue
source§impl Serialize for NamedValue
impl Serialize for NamedValue
impl Eq for NamedValue
impl StructuralPartialEq for NamedValue
Auto Trait Implementations§
impl Freeze for NamedValue
impl RefUnwindSafe for NamedValue
impl Send for NamedValue
impl Sync for NamedValue
impl Unpin for NamedValue
impl UnwindSafe for NamedValue
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)