Skip to main content

Resource

Enum Resource 

Source
pub enum Resource {
Show 18 variants Agent(Agent), AgentSkill(AgentSkill), Catalog(Catalog), Column(Column), Credential(Credential), ExternalLocation(ExternalLocation), Function(Function), ModelVersion(ModelVersion), PolicyInfo(PolicyInfo), Provider(Provider), Recipient(Recipient), RegisteredModel(RegisteredModel), Schema(Schema), Share(Share), StagingTable(StagingTable), Table(Table), TagPolicy(TagPolicy), Volume(Volume),
}
Expand description

All resource types managed by the service.

Variants§

§

Agent(Agent)

§

AgentSkill(AgentSkill)

§

Catalog(Catalog)

§

Column(Column)

§

Credential(Credential)

§

ExternalLocation(ExternalLocation)

§

Function(Function)

§

ModelVersion(ModelVersion)

§

PolicyInfo(PolicyInfo)

§

Provider(Provider)

§

Recipient(Recipient)

§

RegisteredModel(RegisteredModel)

§

Schema(Schema)

§

Share(Share)

§

StagingTable(StagingTable)

§

Table(Table)

§

TagPolicy(TagPolicy)

§

Volume(Volume)

Implementations§

Source§

impl Resource

Source

pub fn resource_label(&self) -> &ObjectLabel

Return the discriminant label for this resource.

Trait Implementations§

Source§

impl Clone for Resource

Source§

fn clone(&self) -> Resource

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Resource

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Agent> for Resource

Source§

fn from(v: Agent) -> Self

Converts to this type from the input type.
Source§

impl From<AgentSkill> for Resource

Source§

fn from(v: AgentSkill) -> Self

Converts to this type from the input type.
Source§

impl From<Catalog> for Resource

Source§

fn from(v: Catalog) -> Self

Converts to this type from the input type.
Source§

impl From<Column> for Resource

Source§

fn from(v: Column) -> Self

Converts to this type from the input type.
Source§

impl From<Credential> for Resource

Source§

fn from(v: Credential) -> Self

Converts to this type from the input type.
Source§

impl From<ExternalLocation> for Resource

Source§

fn from(v: ExternalLocation) -> Self

Converts to this type from the input type.
Source§

impl From<Function> for Resource

Source§

fn from(v: Function) -> Self

Converts to this type from the input type.
Source§

impl From<ModelVersion> for Resource

Source§

fn from(v: ModelVersion) -> Self

Converts to this type from the input type.
Source§

impl From<PolicyInfo> for Resource

Source§

fn from(v: PolicyInfo) -> Self

Converts to this type from the input type.
Source§

impl From<Provider> for Resource

Source§

fn from(v: Provider) -> Self

Converts to this type from the input type.
Source§

impl From<Recipient> for Resource

Source§

fn from(v: Recipient) -> Self

Converts to this type from the input type.
Source§

impl From<RegisteredModel> for Resource

Source§

fn from(v: RegisteredModel) -> Self

Converts to this type from the input type.
Source§

impl From<Schema> for Resource

Source§

fn from(v: Schema) -> Self

Converts to this type from the input type.
Source§

impl From<Share> for Resource

Source§

fn from(v: Share) -> Self

Converts to this type from the input type.
Source§

impl From<StagingTable> for Resource

Source§

fn from(v: StagingTable) -> Self

Converts to this type from the input type.
Source§

impl From<Table> for Resource

Source§

fn from(v: Table) -> Self

Converts to this type from the input type.
Source§

impl From<TagPolicy> for Resource

Source§

fn from(v: TagPolicy) -> Self

Converts to this type from the input type.
Source§

impl From<Volume> for Resource

Source§

fn from(v: Volume) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Resource

Source§

fn eq(&self, other: &Resource) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl ResourceExt for Resource

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 StructuralPartialEq for Resource

Source§

impl TryFrom<Object<ObjectLabel>> for Resource

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<Resource> for Agent

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<Resource> for AgentSkill

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<Resource> for Catalog

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<Resource> for Column

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<Resource> for Credential

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<Resource> for ExternalLocation

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<Resource> for Function

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<Resource> for ModelVersion

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<Resource> for PolicyInfo

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<Resource> for Provider

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<Resource> for Recipient

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<Resource> for RegisteredModel

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<Resource> for Schema

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<Resource> for Share

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<Resource> for StagingTable

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<Resource> for Table

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<Resource> for TagPolicy

Source§

type Error = Error

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

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

Performs the conversion.
Source§

impl TryFrom<Resource> for Volume

Source§

type Error = Error

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

fn try_from(r: Resource) -> 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.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more