pub struct ObjectPreviewBuilder { /* private fields */ }
Available on crate features
Runtime
and experimental
only.Implementations§
Source§impl ObjectPreviewBuilder
impl ObjectPreviewBuilder
Sourcepub fn type(&mut self, v: ObjectPreviewType) -> &mut Self
pub fn type(&mut self, v: ObjectPreviewType) -> &mut Self
Object type.
Sourcepub fn subtype(&mut self, v: ObjectPreviewSubtype) -> &mut Self
pub fn subtype(&mut self, v: ObjectPreviewSubtype) -> &mut Self
Object subtype hint. Specified for object
type values only.
Sourcepub fn description(&mut self, v: String) -> &mut Self
pub fn description(&mut self, v: String) -> &mut Self
String representation of the object.
Sourcepub fn overflow(&mut self, v: bool) -> &mut Self
pub fn overflow(&mut self, v: bool) -> &mut Self
True iff some of the properties or entries of the original object did not fit.
Sourcepub fn properties(&mut self, v: Vec<JsonValue>) -> &mut Self
pub fn properties(&mut self, v: Vec<JsonValue>) -> &mut Self
List of the properties.
Sourcepub fn entries(&mut self, v: Vec<JsonValue>) -> &mut Self
pub fn entries(&mut self, v: Vec<JsonValue>) -> &mut Self
List of the entries. Specified for map
and set
subtype values only.
pub fn build(&mut self) -> Result<ObjectPreview, &'static str>
Trait Implementations§
Source§impl Clone for ObjectPreviewBuilder
impl Clone for ObjectPreviewBuilder
Source§fn clone(&self) -> ObjectPreviewBuilder
fn clone(&self) -> ObjectPreviewBuilder
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 ObjectPreviewBuilder
impl Debug for ObjectPreviewBuilder
Auto Trait Implementations§
impl Freeze for ObjectPreviewBuilder
impl RefUnwindSafe for ObjectPreviewBuilder
impl Send for ObjectPreviewBuilder
impl Sync for ObjectPreviewBuilder
impl Unpin for ObjectPreviewBuilder
impl UnwindSafe for ObjectPreviewBuilder
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