Trait qualia::object::ObjectShapeWithId
source · pub trait ObjectShapeWithId: ObjectShape {
// Required methods
fn get_object_id(&self) -> Option<i64>;
fn set_object_id(&mut self, object_id: i64);
}
Expand description
A type that can be converted to and from an object, with its object_id
.
Required Methods§
sourcefn get_object_id(&self) -> Option<i64>
fn get_object_id(&self) -> Option<i64>
Get the object’s ID.
sourcefn set_object_id(&mut self, object_id: i64)
fn set_object_id(&mut self, object_id: i64)
Set the object’s ID.