pub struct Characteristic {
pub base_type: Option<String>,
pub schema_location: Option<String>,
pub type_: Option<String>,
pub characteristic_relationship: Option<Vec<CharacteristicRelationship>>,
pub id: Option<String>,
pub name: String,
pub value: Any,
pub value_type: Option<String>,
}Expand description
Describes a given characteristic of an object or entity through a name/value pair.
Fields§
§base_type: Option<String>When sub-classing, this defines the super-class
schema_location: Option<String>A URI to a JSON-Schema file that defines additional attributes and relationships
type_: Option<String>When sub-classing, this defines the sub-class Extensible name
characteristic_relationship: Option<Vec<CharacteristicRelationship>>A list of characteristics relationships related to this characteristic.
id: Option<String>Unique identifier of the characteristic
name: StringName of the characteristic
value: AnyValue of the characteristic
value_type: Option<String>Data type of the value of the characteristic
Trait Implementations§
Source§impl Clone for Characteristic
impl Clone for Characteristic
Source§fn clone(&self) -> Characteristic
fn clone(&self) -> Characteristic
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 Characteristic
impl Debug for Characteristic
Source§impl Default for Characteristic
impl Default for Characteristic
Source§fn default() -> Characteristic
fn default() -> Characteristic
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Characteristic
impl<'de> Deserialize<'de> for Characteristic
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
Source§impl Display for Characteristic
impl Display for Characteristic
Auto Trait Implementations§
impl Freeze for Characteristic
impl RefUnwindSafe for Characteristic
impl Send for Characteristic
impl Sync for Characteristic
impl Unpin for Characteristic
impl UnsafeUnpin for Characteristic
impl UnwindSafe for Characteristic
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