pub struct Object {
pub id: ObjectId,
pub kind: String,
pub properties: Vec<Property>,
pub classifications: Vec<Classification>,
pub relationships: BTreeMap<String, Vec<ObjectId>>,
}Expand description
A source-neutral object and its semantic facts.
Fields§
§id: ObjectId§kind: String§properties: Vec<Property>§classifications: Vec<Classification>§relationships: BTreeMap<String, Vec<ObjectId>>Implementations§
Source§impl Object
impl Object
Sourcepub fn with_property(self, property: Property) -> Self
pub fn with_property(self, property: Property) -> Self
Adds a property.
Sourcepub fn with_classification(self, classification: Classification) -> Self
pub fn with_classification(self, classification: Classification) -> Self
Adds a classification.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Object
impl<'de> Deserialize<'de> for Object
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
impl StructuralPartialEq for Object
Auto Trait Implementations§
impl Freeze for Object
impl RefUnwindSafe for Object
impl Send for Object
impl Sync for Object
impl Unpin for Object
impl UnwindSafe for Object
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