pub struct PropertyPreviewBuilder { /* private fields */ }Expand description
Builder for PropertyPreview.
Implementations§
Source§impl PropertyPreviewBuilder
impl PropertyPreviewBuilder
Sourcepub fn type<VALUE: Into<PropertyPreviewType>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn type<VALUE: Into<PropertyPreviewType>>( &mut self, value: VALUE, ) -> &mut Self
Object type. Accessor means that the property itself is an accessor property.
Sourcepub fn value<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn value<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
User-friendly property value string.
Sourcepub fn value_preview<VALUE: Into<ObjectPreview>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn value_preview<VALUE: Into<ObjectPreview>>( &mut self, value: VALUE, ) -> &mut Self
Nested value preview.
Sourcepub fn subtype<VALUE: Into<PropertyPreviewSubtype>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn subtype<VALUE: Into<PropertyPreviewSubtype>>( &mut self, value: VALUE, ) -> &mut Self
Object subtype hint. Specified for object type values only.
Sourcepub fn build(&self) -> Result<PropertyPreview, PropertyPreviewBuilderError>
pub fn build(&self) -> Result<PropertyPreview, PropertyPreviewBuilderError>
Trait Implementations§
Source§impl Clone for PropertyPreviewBuilder
impl Clone for PropertyPreviewBuilder
Source§fn clone(&self) -> PropertyPreviewBuilder
fn clone(&self) -> PropertyPreviewBuilder
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 PropertyPreviewBuilder
impl RefUnwindSafe for PropertyPreviewBuilder
impl Send for PropertyPreviewBuilder
impl Sync for PropertyPreviewBuilder
impl Unpin for PropertyPreviewBuilder
impl UnsafeUnpin for PropertyPreviewBuilder
impl UnwindSafe for PropertyPreviewBuilder
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