pub struct ObjectPreviewBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> ObjectPreviewBuilder<'a>
impl<'a> ObjectPreviewBuilder<'a>
Sourcepub fn subtype(self, subtype: impl Into<Cow<'a, str>>) -> Self
pub fn subtype(self, subtype: impl Into<Cow<'a, str>>) -> Self
Object subtype hint. Specified for ‘object’ type values only.
Sourcepub fn description(self, description: impl Into<Cow<'a, str>>) -> Self
pub fn description(self, description: impl Into<Cow<'a, str>>) -> Self
String representation of the object.
Sourcepub fn entries(self, entries: Vec<EntryPreview<'a>>) -> Self
pub fn entries(self, entries: Vec<EntryPreview<'a>>) -> Self
List of the entries. Specified for ‘map’ and ‘set’ subtype values only.
pub fn build(self) -> ObjectPreview<'a>
Auto Trait Implementations§
impl<'a> Freeze for ObjectPreviewBuilder<'a>
impl<'a> RefUnwindSafe for ObjectPreviewBuilder<'a>
impl<'a> Send for ObjectPreviewBuilder<'a>
impl<'a> Sync for ObjectPreviewBuilder<'a>
impl<'a> Unpin for ObjectPreviewBuilder<'a>
impl<'a> UnsafeUnpin for ObjectPreviewBuilder<'a>
impl<'a> UnwindSafe for ObjectPreviewBuilder<'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