pub struct EntryPreviewBuilder { /* private fields */ }Expand description
Builder for EntryPreview.
Implementations§
Source§impl EntryPreviewBuilder
impl EntryPreviewBuilder
Sourcepub fn key<VALUE: Into<ObjectPreview>>(&mut self, value: VALUE) -> &mut Self
pub fn key<VALUE: Into<ObjectPreview>>(&mut self, value: VALUE) -> &mut Self
Preview of the key. Specified for map-like collection entries.
Sourcepub fn value<VALUE: Into<ObjectPreview>>(&mut self, value: VALUE) -> &mut Self
pub fn value<VALUE: Into<ObjectPreview>>(&mut self, value: VALUE) -> &mut Self
Preview of the value.
Sourcepub fn build(&self) -> Result<EntryPreview, EntryPreviewBuilderError>
pub fn build(&self) -> Result<EntryPreview, EntryPreviewBuilderError>
Trait Implementations§
Source§impl Clone for EntryPreviewBuilder
impl Clone for EntryPreviewBuilder
Source§fn clone(&self) -> EntryPreviewBuilder
fn clone(&self) -> EntryPreviewBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EntryPreviewBuilder
impl RefUnwindSafe for EntryPreviewBuilder
impl Send for EntryPreviewBuilder
impl Sync for EntryPreviewBuilder
impl Unpin for EntryPreviewBuilder
impl UnsafeUnpin for EntryPreviewBuilder
impl UnwindSafe for EntryPreviewBuilder
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