Skip to main content

UnityCatalogClient

Struct UnityCatalogClient 

Source
pub struct UnityCatalogClient { /* private fields */ }

Implementations§

Source§

impl UnityCatalogClient

Source

pub fn new(client: Transport, base_url: Url) -> Self

Create a new aggregate client from a cloud client and base URL.

Per-service clients are constructed on demand (they only hold a cheaply-cloneable CloudClient + Url), so nothing is allocated per service here.

Source

pub fn new_unauthenticated(base_url: Url) -> Self

Create a new aggregate client with no authentication.

Source

pub fn new_with_token(base_url: Url, token: impl ToString) -> Self

Create a new aggregate client authenticating with a bearer token.

Source

pub fn agent_skills_client(&self) -> AgentSkillServiceClient

Low-level agent_skills client exposing request/response passthrough methods.

Source

pub fn agents_client(&self) -> AgentServiceClient

Low-level agents client exposing request/response passthrough methods.

Source

pub fn catalogs_client(&self) -> CatalogServiceClient

Low-level catalogs client exposing request/response passthrough methods.

Source

pub fn credentials_client(&self) -> CredentialServiceClient

Low-level credentials client exposing request/response passthrough methods.

Source

pub fn entity_tag_assignments_client(&self) -> EntityTagAssignmentClient

Low-level entity_tag_assignments client exposing request/response passthrough methods.

Source

pub fn external_locations_client(&self) -> ExternalLocationServiceClient

Low-level external_locations client exposing request/response passthrough methods.

Source

pub fn functions_client(&self) -> FunctionServiceClient

Low-level functions client exposing request/response passthrough methods.

Source

pub fn model_versions_client(&self) -> ModelVersionServiceClient

Low-level model_versions client exposing request/response passthrough methods.

Source

pub fn policies_client(&self) -> PolicyServiceClient

Low-level policies client exposing request/response passthrough methods.

Source

pub fn providers_client(&self) -> ProviderServiceClient

Low-level providers client exposing request/response passthrough methods.

Source

pub fn recipients_client(&self) -> RecipientServiceClient

Low-level recipients client exposing request/response passthrough methods.

Source

pub fn registered_models_client(&self) -> RegisteredModelServiceClient

Low-level registered_models client exposing request/response passthrough methods.

Source

pub fn schemas_client(&self) -> SchemaServiceClient

Low-level schemas client exposing request/response passthrough methods.

Source

pub fn shares_client(&self) -> ShareServiceClient

Low-level shares client exposing request/response passthrough methods.

Source

pub fn staging_tables_client(&self) -> StagingTableServiceClient

Low-level staging_tables client exposing request/response passthrough methods.

Source

pub fn tables_client(&self) -> TableServiceClient

Low-level tables client exposing request/response passthrough methods.

Source

pub fn tag_policies_client(&self) -> TagPolicyServiceClient

Low-level tag_policies client exposing request/response passthrough methods.

Source

pub fn temporary_credentials_client(&self) -> TemporaryCredentialClient

Low-level temporary_credentials client exposing request/response passthrough methods.

Source

pub fn volumes_client(&self) -> VolumeServiceClient

Low-level volumes client exposing request/response passthrough methods.

Source

pub fn list_agent_skills( &self, catalog_name: impl Into<String>, schema_name: impl Into<String>, ) -> ListAgentSkillsBuilder

Lists agent skills.

§Arguments
  • catalog_name - The identifier of the catalog.
  • schema_name - The identifier of the schema.
Source

pub fn create_agent_skill( &self, catalog_name: impl Into<String>, schema_name: impl Into<String>, name: impl Into<String>, agent_skill_type: AgentSkillType, ) -> CreateAgentSkillBuilder

§Arguments
  • catalog_name - The identifier of the catalog.
  • schema_name - The identifier of the schema.
  • name - The identifier of the agent skill.
  • agent_skill_type - How the storage location is provisioned (external or managed).
Source

pub fn agent_skill( &self, catalog_name: impl Into<String>, schema_name: impl Into<String>, agent_skill_name: impl Into<String>, ) -> AgentSkillClient

Access the agent_skill resource scoped to the given name.

Source

pub fn agent_skill_from_full_name( &self, full_name: impl Into<String>, ) -> AgentSkillClient

Access the agent_skill resource from its dot-joined full name.

Source

pub fn list_agents( &self, catalog_name: impl Into<String>, schema_name: impl Into<String>, ) -> ListAgentsBuilder

Lists agents.

§Arguments
  • catalog_name - The identifier of the catalog.
  • schema_name - The identifier of the schema.
Source

pub fn create_agent( &self, catalog_name: impl Into<String>, schema_name: impl Into<String>, name: impl Into<String>, invocation_protocol: InvocationProtocol, endpoint: impl Into<String>, ) -> CreateAgentBuilder

§Arguments
  • catalog_name - The identifier of the catalog.
  • schema_name - The identifier of the schema.
  • name - The identifier of the agent.
  • invocation_protocol - The protocol a recipient uses to invoke the agent.
  • endpoint - The agent’s invocation endpoint URL.
Source

pub fn agent( &self, catalog_name: impl Into<String>, schema_name: impl Into<String>, agent_name: impl Into<String>, ) -> AgentClient

Access the agent resource scoped to the given name.

Source

pub fn agent_from_full_name(&self, full_name: impl Into<String>) -> AgentClient

Access the agent resource from its dot-joined full name.

Source

pub fn list_catalogs(&self) -> ListCatalogsBuilder

List catalogs

Gets an array of catalogs in the metastore. If the caller is the metastore admin, all catalogs will be retrieved. Otherwise, only catalogs owned by the caller (or for which the caller has the USE_CATALOG privilege) will be retrieved. There is no guarantee of a specific ordering of the elements in the array.

Source

pub fn create_catalog(&self, name: impl Into<String>) -> CreateCatalogBuilder

Create a new catalog

Creates a new catalog instance in the parent metastore if the caller is a metastore admin or has the CREATE_CATALOG privilege.

§Arguments
  • name - Name of catalog.
Source

pub fn catalog(&self, catalog_name: impl Into<String>) -> CatalogClient

Access the catalog resource scoped to the given name.

Source

pub fn list_credentials(&self) -> ListCredentialsBuilder

Source

pub fn create_credential( &self, name: impl Into<String>, purpose: Purpose, ) -> CreateCredentialBuilder

§Arguments
  • name - The credential name. The name must be unique among storage and service credentials within the metastore.
  • purpose - Indicates the purpose of the credential.
Source

pub fn credential(&self, credential_name: impl Into<String>) -> CredentialClient

Access the credential resource scoped to the given name.

Source

pub fn list_entity_tag_assignments( &self, entity_type: impl Into<String>, entity_name: impl Into<String>, ) -> ListEntityTagAssignmentsBuilder

List entity tag assignments

Gets the tag assignments for the specified entity.

§Arguments
  • entity_type - The type of the entity whose tag assignments to list.
  • entity_name - The fully qualified name of the entity whose tag assignments to list.
Source

pub fn create_entity_tag_assignment( &self, tag_assignment: EntityTagAssignment, ) -> CreateEntityTagAssignmentBuilder

Create an entity tag assignment

Assigns a tag to a Unity Catalog entity.

§Arguments
  • tag_assignment - The tag assignment to create.
Source

pub fn get_entity_tag_assignment( &self, entity_type: impl Into<String>, entity_name: impl Into<String>, tag_key: impl Into<String>, ) -> GetEntityTagAssignmentBuilder

Get an entity tag assignment

Gets the tag assignment for the specified entity and tag key.

§Arguments
  • entity_type - The type of the entity to which the tag is assigned.
  • entity_name - The fully qualified name of the entity to which the tag is assigned.
  • tag_key - The key of the tag.
Source

pub fn update_entity_tag_assignment( &self, entity_type: impl Into<String>, entity_name: impl Into<String>, tag_key: impl Into<String>, tag_assignment: EntityTagAssignment, ) -> UpdateEntityTagAssignmentBuilder

Update an entity tag assignment

Updates the tag assignment for the specified entity and tag key.

§Arguments
  • entity_type - The type of the entity to which the tag is assigned.
  • entity_name - The fully qualified name of the entity to which the tag is assigned.
  • tag_key - The key of the tag to update.
  • tag_assignment - The tag assignment with the updated fields.
Source

pub fn delete_entity_tag_assignment( &self, entity_type: impl Into<String>, entity_name: impl Into<String>, tag_key: impl Into<String>, ) -> DeleteEntityTagAssignmentBuilder

Delete an entity tag assignment

Deletes the tag assignment for the specified entity and tag key.

§Arguments
  • entity_type - The type of the entity to which the tag is assigned.
  • entity_name - The fully qualified name of the entity to which the tag is assigned.
  • tag_key - The key of the tag to delete.
Source

pub fn list_external_locations(&self) -> ListExternalLocationsBuilder

List external locations

Source

pub fn create_external_location( &self, name: impl Into<String>, url: impl Into<String>, credential_name: impl Into<String>, ) -> CreateExternalLocationBuilder

Create a new external location

§Arguments
  • name - Name of external location.
  • url - Path URL of the external location.
  • credential_name - Name of the storage credential used with this location.
Source

pub fn external_location( &self, external_location_name: impl Into<String>, ) -> ExternalLocationClient

Access the external_location resource scoped to the given name.

Source

pub fn list_functions( &self, catalog_name: impl Into<String>, schema_name: impl Into<String>, ) -> ListFunctionsBuilder

List functions

List functions within the specified parent catalog and schema. If the caller is the metastore admin, all functions are returned in the response. Otherwise, the caller must have USE_CATALOG on the parent catalog and USE_SCHEMA on the parent schema, and the function must either be owned by the caller or have SELECT on the function.

§Arguments
  • catalog_name - Name of parent catalog for functions of interest.
  • schema_name - Parent schema of functions.
Source

pub fn create_function( &self, function_info: CreateFunction, ) -> CreateFunctionBuilder

Create a function

Creates a new function. The caller must be a metastore admin or have the CREATE_FUNCTION privilege on the parent catalog and schema.

§Arguments
  • function_info - The function to create.
Source

pub fn function( &self, catalog_name: impl Into<String>, schema_name: impl Into<String>, function_name: impl Into<String>, ) -> FunctionClient

Access the function resource scoped to the given name.

Source

pub fn function_from_full_name( &self, full_name: impl Into<String>, ) -> FunctionClient

Access the function resource from its dot-joined full name.

Source

pub fn list_model_versions( &self, full_name: impl Into<String>, ) -> ListModelVersionsBuilder

List model versions

List the model versions of the specified registered model. If the caller is the metastore admin, all model versions are returned. Otherwise, the caller must have the appropriate privileges on the parent model.

§Arguments
  • full_name - The full three-level name of the registered model (catalog.schema.model) whose versions are being listed.
Source

pub fn create_model_version( &self, model_name: impl Into<String>, catalog_name: impl Into<String>, schema_name: impl Into<String>, source: impl Into<String>, ) -> CreateModelVersionBuilder

Create a model version

Creates a new model version in PENDING_REGISTRATION status. The server assigns the version number and a storage location for the artifacts. The caller must be a metastore admin or the owner of the parent registered model.

§Arguments
  • model_name - Name of the parent registered model, relative to parent schema.
  • catalog_name - Name of parent catalog.
  • schema_name - Name of parent schema.
  • source - URI indicating the location of the source artifacts (e.g. an MLflow run artifact path) used to create the model version.
Source

pub fn get_model_version( &self, full_name: impl Into<String>, version: i64, ) -> GetModelVersionBuilder

Get a model version

Gets a model version by its parent model name and version number.

§Arguments
  • full_name - The full three-level name of the parent registered model (catalog.schema.model).
  • version - The integer version number of the model version.
Source

pub fn update_model_version( &self, full_name: impl Into<String>, version: i64, ) -> UpdateModelVersionBuilder

Update a model version

Updates the model version that matches the supplied name and version.

§Arguments
  • full_name - The full three-level name of the parent registered model (catalog.schema.model).
  • version - The integer version number of the model version.
Source

pub fn delete_model_version( &self, full_name: impl Into<String>, version: i64, ) -> DeleteModelVersionBuilder

Delete a model version

Deletes the model version that matches the supplied name and version. For the deletion to succeed, the caller must be the owner of the parent registered model.

§Arguments
  • full_name - The full three-level name of the parent registered model (catalog.schema.model).
  • version - The integer version number of the model version.
Source

pub fn finalize_model_version( &self, full_name: impl Into<String>, version: i64, ) -> FinalizeModelVersionBuilder

Finalize a model version

Transitions a model version to READY once all artifacts have been written to its storage location.

§Arguments
  • full_name - The full three-level name of the parent registered model (catalog.schema.model).
  • version - The integer version number of the model version to finalize.
Source

pub fn list_policies( &self, on_securable_type: impl Into<String>, on_securable_fullname: impl Into<String>, ) -> ListPoliciesBuilder

List policies

Gets an array of policies defined on the specified securable. There is no guarantee of a specific ordering of the elements in the array.

§Arguments
  • on_securable_type - The type of the securable to list policies on.

Supported values: catalogs, schemas, tables.

  • on_securable_fullname - The fully qualified name of the securable to list policies on.
Source

pub fn policy(&self, policy_name: impl Into<String>) -> PolicyClient

Access the policy resource scoped to the given name.

Source

pub fn list_providers(&self) -> ListProvidersBuilder

List providers.

Source

pub fn create_provider( &self, name: impl Into<String>, authentication_type: ProviderAuthenticationType, ) -> CreateProviderBuilder

Create a new provider.

§Arguments
  • name - Name of the provider.
  • authentication_type - The delta sharing authentication type.
Source

pub fn provider(&self, provider_name: impl Into<String>) -> ProviderClient

Access the provider resource scoped to the given name.

Source

pub fn list_recipients(&self) -> ListRecipientsBuilder

List recipients.

Source

pub fn create_recipient( &self, name: impl Into<String>, authentication_type: AuthenticationType, owner: impl Into<String>, ) -> CreateRecipientBuilder

Create a new recipient.

§Arguments
  • name - Name of the recipient.
  • authentication_type - The delta sharing authentication type.
  • owner - Username of the recipient owner.
Source

pub fn recipient(&self, recipient_name: impl Into<String>) -> RecipientClient

Access the recipient resource scoped to the given name.

Source

pub fn list_registered_models(&self) -> ListRegisteredModelsBuilder

List registered models

List registered models within the specified parent catalog and schema. If the caller is the metastore admin, all registered models are returned in the response. Otherwise, the caller must have USE_CATALOG on the parent catalog and USE_SCHEMA on the parent schema, and the model must either be owned by the caller or the caller must have a privilege on the model.

Source

pub fn create_registered_model( &self, name: impl Into<String>, catalog_name: impl Into<String>, schema_name: impl Into<String>, ) -> CreateRegisteredModelBuilder

Create a registered model

Creates a new registered model. The caller must be a metastore admin or have the CREATE_MODEL privilege on the parent catalog and schema.

§Arguments
  • name - Name of registered model, relative to parent schema.
  • catalog_name - Name of parent catalog.
  • schema_name - Name of parent schema.
Source

pub fn registered_model( &self, catalog_name: impl Into<String>, schema_name: impl Into<String>, registered_model_name: impl Into<String>, ) -> RegisteredModelClient

Access the registered_model resource scoped to the given name.

Source

pub fn registered_model_from_full_name( &self, full_name: impl Into<String>, ) -> RegisteredModelClient

Access the registered_model resource from its dot-joined full name.

Source

pub fn list_schemas( &self, catalog_name: impl Into<String>, ) -> ListSchemasBuilder

Gets an array of schemas for a catalog in the metastore. If the caller is the metastore admin or the owner of the parent catalog, all schemas for the catalog will be retrieved. Otherwise, only schemas owned by the caller (or for which the caller has the USE_SCHEMA privilege) will be retrieved. There is no guarantee of a specific ordering of the elements in the array.

§Arguments
  • catalog_name - Name of parent catalog.
Source

pub fn create_schema( &self, name: impl Into<String>, catalog_name: impl Into<String>, ) -> CreateSchemaBuilder

Creates a new schema for catalog in the Metatastore. The caller must be a metastore admin, or have the CREATE_SCHEMA privilege in the parent catalog.

§Arguments
  • name - Name of schema, relative to parent catalog.
  • catalog_name - Name of parent catalog.
Source

pub fn schema( &self, catalog_name: impl Into<String>, schema_name: impl Into<String>, ) -> SchemaClient

Access the schema resource scoped to the given name.

Source

pub fn schema_from_full_name( &self, full_name: impl Into<String>, ) -> SchemaClient

Access the schema resource from its dot-joined full name.

Source

pub fn list_shares(&self) -> ListSharesBuilder

List shares.

Source

pub fn create_share(&self, name: impl Into<String>) -> CreateShareBuilder

Create a new share.

§Arguments
  • name - Name of the share.
Source

pub fn share(&self, share_name: impl Into<String>) -> ShareClient

Access the share resource scoped to the given name.

Source

pub fn create_staging_table( &self, name: impl Into<String>, catalog_name: impl Into<String>, schema_name: impl Into<String>, ) -> CreateStagingTableBuilder

Creates a new staging table, allocating an immutable table id and a storage location under the parent schema/catalog managed storage root. The caller must have the CREATE privilege on the parent schema.

§Arguments
  • name - Name of the staging table, relative to the parent schema.
  • catalog_name - Name of the parent catalog.
  • schema_name - Name of the parent schema relative to its parent catalog.
Source

pub fn staging_table( &self, staging_table_name: impl Into<String>, ) -> StagingTableClient

Access the staging_table resource scoped to the given name.

Source

pub fn list_table_summaries( &self, catalog_name: impl Into<String>, ) -> ListTableSummariesBuilder

Gets an array of summaries for tables for a schema and catalog within the metastore. The table summaries returned are either:

  • summaries for tables (within the current metastore and parent catalog and schema), when the user is a metastore admin, or:
  • summaries for tables and schemas (within the current metastore and parent catalog) for which the user has ownership or the SELECT privilege on the table and ownership or USE_SCHEMA privilege on the schema, provided that the user also has ownership or the USE_CATALOG privilege on the parent catalog.

There is no guarantee of a specific ordering of the elements in the array.

§Arguments
  • catalog_name - Name of parent catalog for tables of interest.
Source

pub fn list_tables( &self, catalog_name: impl Into<String>, schema_name: impl Into<String>, ) -> ListTablesBuilder

Gets an array of all tables for the current metastore under the parent catalog and schema.

The caller must be a metastore admin or an owner of (or have the SELECT privilege on) the table. For the latter case, the caller must also be the owner or have the USE_CATALOG privilege on the parent catalog and the USE_SCHEMA privilege on the parent schema. There is no guarantee of a specific ordering of the elements in the array.

§Arguments
  • catalog_name - Name of parent catalog for tables of interest.
  • schema_name - Name of parent schema for tables of interest.
Source

pub fn create_table( &self, name: impl Into<String>, schema_name: impl Into<String>, catalog_name: impl Into<String>, table_type: TableType, data_source_format: DataSourceFormat, ) -> CreateTableBuilder

Create a table

§Arguments
  • name - Name of table, relative to parent schema.
  • schema_name - Name of parent schema relative to its parent catalog.
  • catalog_name - Name of parent catalog.
Source

pub fn table( &self, catalog_name: impl Into<String>, schema_name: impl Into<String>, table_name: impl Into<String>, ) -> TableClient

Access the table resource scoped to the given name.

Source

pub fn table_from_full_name(&self, full_name: impl Into<String>) -> TableClient

Access the table resource from its dot-joined full name.

Source

pub fn list_tag_policies(&self) -> ListTagPoliciesBuilder

List tag policies

Gets an array of tag policies. There is no guarantee of a specific ordering of the elements in the array.

Source

pub fn create_tag_policy(&self, tag_policy: TagPolicy) -> CreateTagPolicyBuilder

Create a new tag policy

Creates a new governed tag definition.

§Arguments
  • tag_policy - The tag policy to create.
Source

pub fn tag_policy(&self, tag_policy_name: impl Into<String>) -> TagPolicyClient

Access the tag_policy resource scoped to the given name.

Source

pub fn generate_temporary_table_credentials( &self, table_id: impl Into<String>, operation: Operation, ) -> GenerateTemporaryTableCredentialsBuilder

Generate a new set of credentials for a table.

§Arguments
  • table_id - UUID of the table to read or write.
  • operation - The operation performed against the table data, either READ or READ_WRITE. If READ_WRITE is specified, the credentials returned will have write permissions, otherwise, it will be read only.
Source

pub fn generate_temporary_path_credentials( &self, url: impl Into<String>, operation: Operation, ) -> GenerateTemporaryPathCredentialsBuilder

Generate a new set of credentials for a path.

§Arguments
  • url - URL for path-based access.
  • operation - The operation being performed on the path.
Source

pub fn generate_temporary_volume_credentials( &self, volume_id: impl Into<String>, operation: Operation, ) -> GenerateTemporaryVolumeCredentialsBuilder

Generate a new set of credentials for a volume.

The metastore must have the external_access_enabled flag set to true (default false). The caller must have the EXTERNAL_USE_SCHEMA privilege on the parent schema (granted by a catalog owner).

§Arguments
  • volume_id - UUID of the volume to read or write.
  • operation - The operation performed against the volume data, either READ_VOLUME or WRITE_VOLUME. If WRITE_VOLUME is specified, the credentials returned will have write permissions, otherwise, it will be read only.
Source

pub fn generate_temporary_model_version_credentials( &self, catalog_name: impl Into<String>, schema_name: impl Into<String>, model_name: impl Into<String>, version: i64, operation: Operation, ) -> GenerateTemporaryModelVersionCredentialsBuilder

Generate a new set of credentials for a model version.

The metastore must have the external_access_enabled flag set to true (default false). The caller must have the EXTERNAL_USE_SCHEMA privilege on the parent schema (granted by a catalog owner).

§Arguments
  • catalog_name - Name of parent catalog of the model version.
  • schema_name - Name of parent schema of the model version.
  • model_name - Name of the parent registered model.
  • version - The integer version number of the model version.
  • operation - The operation performed against the model version data, either READ_MODEL_VERSION or READ_WRITE_MODEL_VERSION. If READ_WRITE_MODEL_VERSION is specified, the credentials returned will have write permissions, otherwise, it will be read only.
Source

pub fn list_volumes( &self, catalog_name: impl Into<String>, schema_name: impl Into<String>, ) -> ListVolumesBuilder

Lists volumes.

§Arguments
  • catalog_name - The identifier of the catalog
  • schema_name - The identifier of the schema
Source

pub fn create_volume( &self, catalog_name: impl Into<String>, schema_name: impl Into<String>, name: impl Into<String>, volume_type: VolumeType, ) -> CreateVolumeBuilder

§Arguments
  • catalog_name - The identifier of the catalog
  • schema_name - The identifier of the schema
  • name - The identifier of the volume
  • volume_type - The type of the volume.

An external volume is located in the specified external location. A managed volume is located in the default location which is specified by the parent schema, or the parent catalog, or the Metastore.

Source

pub fn volume( &self, catalog_name: impl Into<String>, schema_name: impl Into<String>, volume_name: impl Into<String>, ) -> VolumeClient

Access the volume resource scoped to the given name.

Source

pub fn volume_from_full_name( &self, full_name: impl Into<String>, ) -> VolumeClient

Access the volume resource from its dot-joined full name.

Source§

impl UnityCatalogClient

Source

pub fn temporary_credentials(&self) -> TemporaryCredentialClient

Ergonomic accessor for the temporary credential vending client.

Wraps the generated low-level client with the hand-written name → UUID resolving helpers (temporary_table_credential, temporary_volume_credential, temporary_path_credential).

Source

pub fn delta_v1(&self) -> DeltaV1Client

Ergonomic accessor for the hand-written /delta/v1/ Delta REST API client.

Reuses a generated low-level client’s cloud client and base URL (both carry the same auth + endpoint), so the Delta v1 client shares the aggregate client’s configuration without touching generated code.

Trait Implementations§

Source§

impl Clone for UnityCatalogClient

Source§

fn clone(&self) -> UnityCatalogClient

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

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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