pub struct PropertyPreviewBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> PropertyPreviewBuilder<'a>
impl<'a> PropertyPreviewBuilder<'a>
Sourcepub fn value(self, value: impl Into<Cow<'a, str>>) -> Self
pub fn value(self, value: impl Into<Cow<'a, str>>) -> Self
User-friendly property value string.
Sourcepub fn value_preview(self, value_preview: ObjectPreview<'a>) -> Self
pub fn value_preview(self, value_preview: ObjectPreview<'a>) -> Self
Nested value preview.
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.
pub fn build(self) -> PropertyPreview<'a>
Auto Trait Implementations§
impl<'a> Freeze for PropertyPreviewBuilder<'a>
impl<'a> RefUnwindSafe for PropertyPreviewBuilder<'a>
impl<'a> Send for PropertyPreviewBuilder<'a>
impl<'a> Sync for PropertyPreviewBuilder<'a>
impl<'a> Unpin for PropertyPreviewBuilder<'a>
impl<'a> UnsafeUnpin for PropertyPreviewBuilder<'a>
impl<'a> UnwindSafe for PropertyPreviewBuilder<'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