pub struct SerializeDefinitionShape {
pub id: ShapeId,
pub type_name: TypeName,
pub description: Option<&'static str>,
pub kind: SerializeDefinitionKind,
}Expand description
A named type definition in a serialization shape graph.
Fields§
§id: ShapeIdThe stable id of this definition inside its graph.
type_name: TypeNameThe Rust and Serde names for this definition.
description: Option<&'static str>User-facing documentation for this definition, if available.
kind: SerializeDefinitionKindThe definition body.
Trait Implementations§
Source§impl Clone for SerializeDefinitionShape
impl Clone for SerializeDefinitionShape
Source§fn clone(&self) -> SerializeDefinitionShape
fn clone(&self) -> SerializeDefinitionShape
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 SerializeDefinitionShape
impl Debug for SerializeDefinitionShape
impl Eq for SerializeDefinitionShape
Source§impl PartialEq for SerializeDefinitionShape
impl PartialEq for SerializeDefinitionShape
impl StructuralPartialEq for SerializeDefinitionShape
Auto Trait Implementations§
impl Freeze for SerializeDefinitionShape
impl RefUnwindSafe for SerializeDefinitionShape
impl Send for SerializeDefinitionShape
impl Sync for SerializeDefinitionShape
impl Unpin for SerializeDefinitionShape
impl UnsafeUnpin for SerializeDefinitionShape
impl UnwindSafe for SerializeDefinitionShape
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