pub struct PropertyDetails {
pub property_type: String,
pub description: String,
pub enum_values: Option<Vec<String>>,
pub items: Option<Box<PropertyDetails>>,
}
Expand description
Details about a property
Fields§
§property_type: String
The type of the property
description: String
The description of the property
enum_values: Option<Vec<String>>
The enum values if the property is an enum
items: Option<Box<PropertyDetails>>
The items if the property is an array
Implementations§
Source§impl PropertyDetails
impl PropertyDetails
Sourcepub fn array(description: impl Into<String>, items: PropertyDetails) -> Self
pub fn array(description: impl Into<String>, items: PropertyDetails) -> Self
Create a new array property
Trait Implementations§
Source§impl Clone for PropertyDetails
impl Clone for PropertyDetails
Source§fn clone(&self) -> PropertyDetails
fn clone(&self) -> PropertyDetails
Returns a copy 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 PropertyDetails
impl Debug for PropertyDetails
Source§impl<'de> Deserialize<'de> for PropertyDetails
impl<'de> Deserialize<'de> for PropertyDetails
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 Freeze for PropertyDetails
impl RefUnwindSafe for PropertyDetails
impl Send for PropertyDetails
impl Sync for PropertyDetails
impl Unpin for PropertyDetails
impl UnwindSafe for PropertyDetails
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