pub struct PropertyPreview<'a> { /* private fields */ }Implementations§
Source§impl<'a> PropertyPreview<'a>
impl<'a> PropertyPreview<'a>
Sourcepub fn builder(
name: impl Into<Cow<'a, str>>,
type_: impl Into<Cow<'a, str>>,
) -> PropertyPreviewBuilder<'a>
pub fn builder( name: impl Into<Cow<'a, str>>, type_: impl Into<Cow<'a, str>>, ) -> PropertyPreviewBuilder<'a>
Creates a builder for this type with the required parameters:
name: Property name.type_: Object type. Accessor means that the property itself is an accessor property.
Sourcepub fn type_(&self) -> &str
pub fn type_(&self) -> &str
Object type. Accessor means that the property itself is an accessor property.
Sourcepub fn value_preview(&self) -> Option<&ObjectPreview<'a>>
pub fn value_preview(&self) -> Option<&ObjectPreview<'a>>
Nested value preview.
Trait Implementations§
Source§impl<'a> Clone for PropertyPreview<'a>
impl<'a> Clone for PropertyPreview<'a>
Source§fn clone(&self) -> PropertyPreview<'a>
fn clone(&self) -> PropertyPreview<'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 PropertyPreview<'a>
impl<'a> Debug for PropertyPreview<'a>
Source§impl<'a> Default for PropertyPreview<'a>
impl<'a> Default for PropertyPreview<'a>
Source§fn default() -> PropertyPreview<'a>
fn default() -> PropertyPreview<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for PropertyPreview<'a>
impl<'de, 'a> Deserialize<'de> for PropertyPreview<'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 PropertyPreview<'a>
impl<'a> RefUnwindSafe for PropertyPreview<'a>
impl<'a> Send for PropertyPreview<'a>
impl<'a> Sync for PropertyPreview<'a>
impl<'a> Unpin for PropertyPreview<'a>
impl<'a> UnsafeUnpin for PropertyPreview<'a>
impl<'a> UnwindSafe for PropertyPreview<'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