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<NamedValue> for NamedValue
impl PartialEq<NamedValue> for NamedValue
source§fn eq(&self, other: &NamedValue) -> bool
fn eq(&self, other: &NamedValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.