pub struct ObjectPreview<'a> { /* private fields */ }Expand description
Object containing abbreviated remote object value.
Implementations§
Source§impl<'a> ObjectPreview<'a>
impl<'a> ObjectPreview<'a>
Sourcepub fn builder(
type_: impl Into<Cow<'a, str>>,
overflow: bool,
properties: Vec<PropertyPreview<'a>>,
) -> ObjectPreviewBuilder<'a>
pub fn builder( type_: impl Into<Cow<'a, str>>, overflow: bool, properties: Vec<PropertyPreview<'a>>, ) -> ObjectPreviewBuilder<'a>
Creates a builder for this type with the required parameters:
type_: Object type.overflow: True iff some of the properties or entries of the original object did not fit.properties: List of the properties.
Sourcepub fn subtype(&self) -> Option<&str>
pub fn subtype(&self) -> Option<&str>
Object subtype hint. Specified for ‘object’ type values only.
Sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
String representation of the object.
Sourcepub fn overflow(&self) -> bool
pub fn overflow(&self) -> bool
True iff some of the properties or entries of the original object did not fit.
Sourcepub fn properties(&self) -> &[PropertyPreview<'a>]
pub fn properties(&self) -> &[PropertyPreview<'a>]
List of the properties.
Sourcepub fn entries(&self) -> Option<&[EntryPreview<'a>]>
pub fn entries(&self) -> Option<&[EntryPreview<'a>]>
List of the entries. Specified for ‘map’ and ‘set’ subtype values only.
Trait Implementations§
Source§impl<'a> Clone for ObjectPreview<'a>
impl<'a> Clone for ObjectPreview<'a>
Source§fn clone(&self) -> ObjectPreview<'a>
fn clone(&self) -> ObjectPreview<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ObjectPreview<'a>
impl<'a> Debug for ObjectPreview<'a>
Source§impl<'a> Default for ObjectPreview<'a>
impl<'a> Default for ObjectPreview<'a>
Source§fn default() -> ObjectPreview<'a>
fn default() -> ObjectPreview<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for ObjectPreview<'a>
impl<'de, 'a> Deserialize<'de> for ObjectPreview<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for ObjectPreview<'a>
impl<'a> RefUnwindSafe for ObjectPreview<'a>
impl<'a> Send for ObjectPreview<'a>
impl<'a> Sync for ObjectPreview<'a>
impl<'a> Unpin for ObjectPreview<'a>
impl<'a> UnsafeUnpin for ObjectPreview<'a>
impl<'a> UnwindSafe for ObjectPreview<'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