Skip to main content

Object

Type Alias Object 

Source
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: Uuid

The globally unique identifier of the object.

§label: ObjectLabel

The label / type of the object.

§name: ResourceName

The namespaced name of the object.

§properties: Option<Value>

The properties of the object (serialized resource fields).

§version: u64

Monotonic 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

Source§

fn resource_name(&self) -> ResourceName

Get the name of the resource
Source§

fn resource_ref(&self) -> ResourceRef

Get the reference for the resource Read more
Source§

fn resource_ident(&self) -> ResourceIdent

Get the ident for the resource
Source§

impl TryFrom<Agent> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(obj: Agent) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<AgentSkill> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(obj: AgentSkill) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Catalog> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(obj: Catalog) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Column> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(obj: Column) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Credential> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(obj: Credential) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ExternalLocation> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(obj: ExternalLocation) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Function> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(obj: Function) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ModelVersion> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(obj: ModelVersion) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PolicyInfo> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(obj: PolicyInfo) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Provider> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(obj: Provider) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Recipient> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(obj: Recipient) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<RegisteredModel> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(obj: RegisteredModel) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Resource> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(resource: Resource) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Schema> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(obj: Schema) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Share> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(obj: Share) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<StagingTable> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(obj: StagingTable) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Table> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(obj: Table) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<TagPolicy> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(obj: TagPolicy) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Volume> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(obj: Volume) -> Result<Self, Self::Error>

Performs the conversion.