pub struct VersionedJson<'buf> { /* private fields */ }Expand description
A json::Document that has been processed by infer_version and has been identified
as being a concrete [Version].
Implementations§
Source§impl<'buf> VersionedJson<'buf>
impl<'buf> VersionedJson<'buf>
Sourcepub fn into_doc(self) -> Document<'buf>
pub fn into_doc(self) -> Document<'buf>
Return the inner json::Document and discard the version info.
Sourcepub fn as_element(&self) -> &Element<'buf>
pub fn as_element(&self) -> &Element<'buf>
Return the inner json::Element and discard the version info.
Sourcepub fn as_doc(&self) -> &Document<'buf>
pub fn as_doc(&self) -> &Document<'buf>
Return a reference to the inner json::Document.
Sourcepub fn as_json_str(&self) -> &'buf str
pub fn as_json_str(&self) -> &'buf str
Return the inner JSON str and discard the version info.
Trait Implementations§
Source§impl Debug for VersionedJson<'_>
impl Debug for VersionedJson<'_>
Auto Trait Implementations§
impl<'buf> !Send for VersionedJson<'buf>
impl<'buf> !Sync for VersionedJson<'buf>
impl<'buf> Freeze for VersionedJson<'buf>
impl<'buf> RefUnwindSafe for VersionedJson<'buf>
impl<'buf> Unpin for VersionedJson<'buf>
impl<'buf> UnsafeUnpin for VersionedJson<'buf>
impl<'buf> UnwindSafe for VersionedJson<'buf>
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