#[non_exhaustive]pub struct PropertyType {
pub value_type: Option<PropValType>,
pub is_object: bool,
pub is_array: bool,
pub type_name: String,
}Expand description
What a property’s type is, as PropertyObject.GetType reports it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.value_type: Option<PropValType>The value type, or None for a code this build does not know.
is_object: boolThe property holds an object rather than a plain value.
is_array: boolThe property is an array.
type_name: StringThe named type, empty when the property has none.
Trait Implementations§
Source§impl Clone for PropertyType
impl Clone for PropertyType
Source§fn clone(&self) -> PropertyType
fn clone(&self) -> PropertyType
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 Debug for PropertyType
impl Debug for PropertyType
impl Eq for PropertyType
Source§impl PartialEq for PropertyType
impl PartialEq for PropertyType
impl StructuralPartialEq for PropertyType
Auto Trait Implementations§
impl Freeze for PropertyType
impl RefUnwindSafe for PropertyType
impl Send for PropertyType
impl Sync for PropertyType
impl Unpin for PropertyType
impl UnsafeUnpin for PropertyType
impl UnwindSafe for PropertyType
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