pub struct PropertyPreviewBuilder { /* private fields */ }Available on crate features
Runtime and experimental only.Implementations§
Source§impl PropertyPreviewBuilder
impl PropertyPreviewBuilder
Sourcepub fn type(&mut self, v: PropertyPreviewType) -> &mut Self
pub fn type(&mut self, v: PropertyPreviewType) -> &mut Self
Object type. Accessor means that the property itself is an accessor property.
Sourcepub fn value_preview(&mut self, v: JsonValue) -> &mut Self
pub fn value_preview(&mut self, v: JsonValue) -> &mut Self
Nested value preview.
Sourcepub fn subtype(&mut self, v: PropertyPreviewSubtype) -> &mut Self
pub fn subtype(&mut self, v: PropertyPreviewSubtype) -> &mut Self
Object subtype hint. Specified for object type values only.
pub fn build(&mut self) -> Result<PropertyPreview, &'static str>
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 moreSource§impl Debug for PropertyPreviewBuilder
impl Debug for PropertyPreviewBuilder
Auto Trait Implementations§
impl Freeze for PropertyPreviewBuilder
impl RefUnwindSafe for PropertyPreviewBuilder
impl Send for PropertyPreviewBuilder
impl Sync for PropertyPreviewBuilder
impl Unpin 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