pub type Object = Object<ObjectLabel>;Expand description
Project-specific alias for resource_store::Object with our generated ObjectLabel.
Aliased Type§
pub struct Object {
pub id: Uuid,
pub label: ObjectLabel,
pub name: ResourceName,
pub properties: Option<Value>,
pub version: u64,
pub created_at: DateTime<Utc>,
pub updated_at: Option<DateTime<Utc>>,
}Fields§
§id: UuidThe globally unique identifier of the object.
label: ObjectLabelThe label / type of the object.
name: ResourceNameThe namespaced name of the object.
properties: Option<Value>The properties of the object (serialized resource fields).
version: u64Monotonic version, bumped on every mutating operation.
Serves as an opaque optimistic-concurrency token (an etag): pass the
version observed on a read back in a Precondition::Version to perform
a compare-and-swap. A fresh object starts at version 0; each successful
update or rename
increments it.
created_at: DateTime<Utc>The time when the object was created.
updated_at: Option<DateTime<Utc>>The time when the object was last updated.
Trait Implementations§
Source§impl ResourceExt for Object
impl ResourceExt for Object
Source§fn resource_name(&self) -> ResourceName
fn resource_name(&self) -> ResourceName
Get the name of the resource
Source§fn resource_ref(&self) -> ResourceRef
fn resource_ref(&self) -> ResourceRef
Get the reference for the resource Read more
Source§fn resource_ident(&self) -> ResourceIdent
fn resource_ident(&self) -> ResourceIdent
Get the ident for the resource