Struct serde_content::Struct
source · pub struct Struct<'a> {
pub name: Cow<'static, str>,
pub data: Data<'a>,
}
Expand description
Represents a Rust struct.
Fields§
§name: Cow<'static, str>
The name of the struct.
data: Data<'a>
The data of the struct.
Implementations§
Trait Implementations§
source§impl<'a> PartialOrd for Struct<'a>
impl<'a> PartialOrd for Struct<'a>
source§impl Unexpected for Box<Struct<'_>>
impl Unexpected for Box<Struct<'_>>
source§fn unexpected(self, expected: Expected) -> Error
fn unexpected(self, expected: Expected) -> Error
Consumes the type and returns an error.
impl<'a> StructuralPartialEq for Struct<'a>
Auto Trait Implementations§
impl<'a> Freeze for Struct<'a>
impl<'a> RefUnwindSafe for Struct<'a>
impl<'a> Send for Struct<'a>
impl<'a> Sync for Struct<'a>
impl<'a> Unpin for Struct<'a>
impl<'a> UnwindSafe for Struct<'a>
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
)