pub struct UnknownContent {
pub type_name: String,
pub raw: JsonObject,
pub extensions: Extensions,
}Expand description
A content block whose type this build does not know.
Fields§
§type_name: StringThe type string that was on the wire.
raw: JsonObjectThe block exactly as received, so it can be forwarded unchanged.
extensions: ExtensionsUnmodelled fields, kept alongside the raw copy so a codec that can model them does not have to re-derive them from text.
Trait Implementations§
Source§impl Clone for UnknownContent
impl Clone for UnknownContent
Source§impl Debug for UnknownContent
impl Debug for UnknownContent
Source§impl PartialEq for UnknownContent
impl PartialEq for UnknownContent
impl StructuralPartialEq for UnknownContent
Auto Trait Implementations§
impl Freeze for UnknownContent
impl RefUnwindSafe for UnknownContent
impl Send for UnknownContent
impl Sync for UnknownContent
impl Unpin for UnknownContent
impl UnsafeUnpin for UnknownContent
impl UnwindSafe for UnknownContent
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