pub struct EntryPreview<'a> { /* private fields */ }Implementations§
Source§impl<'a> EntryPreview<'a>
impl<'a> EntryPreview<'a>
Sourcepub fn builder(value: ObjectPreview<'a>) -> EntryPreviewBuilder<'a>
pub fn builder(value: ObjectPreview<'a>) -> EntryPreviewBuilder<'a>
Creates a builder for this type with the required parameters:
value: Preview of the value.
Sourcepub fn key(&self) -> Option<&ObjectPreview<'a>>
pub fn key(&self) -> Option<&ObjectPreview<'a>>
Preview of the key. Specified for map-like collection entries.
Sourcepub fn value(&self) -> &ObjectPreview<'a>
pub fn value(&self) -> &ObjectPreview<'a>
Preview of the value.
Trait Implementations§
Source§impl<'a> Clone for EntryPreview<'a>
impl<'a> Clone for EntryPreview<'a>
Source§fn clone(&self) -> EntryPreview<'a>
fn clone(&self) -> EntryPreview<'a>
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<'a> Debug for EntryPreview<'a>
impl<'a> Debug for EntryPreview<'a>
Source§impl<'a> Default for EntryPreview<'a>
impl<'a> Default for EntryPreview<'a>
Source§fn default() -> EntryPreview<'a>
fn default() -> EntryPreview<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for EntryPreview<'a>
impl<'de, 'a> Deserialize<'de> for EntryPreview<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for EntryPreview<'a>
impl<'a> RefUnwindSafe for EntryPreview<'a>
impl<'a> Send for EntryPreview<'a>
impl<'a> Sync for EntryPreview<'a>
impl<'a> Unpin for EntryPreview<'a>
impl<'a> UnsafeUnpin for EntryPreview<'a>
impl<'a> UnwindSafe for EntryPreview<'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