Struct mlmd::MetadataStore[][src]

pub struct MetadataStore { /* fields omitted */ }

Metadata store.

MetadataStore provides the API to operate on a database to store and fetch metadata.

Implementations

impl MetadataStore[src]

pub async fn connect(database_uri: &str) -> Result<Self, InitError>[src]

Connects to the database specified by the given URI.

pub fn put_artifact_type(
    &mut self,
    type_name: &str
) -> PutArtifactTypeRequest<'_>
[src]

Makes a request builder to put an artifact type.

pub fn get_artifact_types(&mut self) -> GetArtifactTypesRequest<'_>[src]

Makes a request builder to get artifact types.

pub fn put_execution_type(
    &mut self,
    type_name: &str
) -> PutExecutionTypeRequest<'_>
[src]

Makes a request builder to put an execution type.

pub fn get_execution_types(&mut self) -> GetExecutionTypesRequest<'_>[src]

Makes a request builder to get execution types.

pub fn put_context_type(&mut self, type_name: &str) -> PutContextTypeRequest<'_>[src]

Makes a request builder to put a context type.

pub fn get_context_types(&mut self) -> GetContextTypesRequest<'_>[src]

Makes a request builder to get context types.

pub fn post_artifact(&mut self, type_id: TypeId) -> PostArtifactRequest<'_>[src]

Makes a request builder to create a new artifact.

pub fn put_artifact(
    &mut self,
    artifact_id: ArtifactId
) -> PutArtifactRequest<'_>
[src]

Makes a request builder to update an artifact.

pub fn get_artifacts(&mut self) -> GetArtifactsRequest<'_>[src]

Makes a request builder to get artifacts.

pub fn post_execution(&mut self, type_id: TypeId) -> PostExecutionRequest<'_>[src]

Makes a request builder to create a new execution.

pub fn put_execution(
    &mut self,
    execution_id: ExecutionId
) -> PutExecutionRequest<'_>
[src]

Makes a request builder to update an execution.

pub fn get_executions(&mut self) -> GetExecutionsRequest<'_>[src]

Makes a request builder to get executions.

pub fn post_context(
    &mut self,
    type_id: TypeId,
    context_name: &str
) -> PostContextRequest<'_>
[src]

Makes a request builder to create a new context.

pub fn put_context(&mut self, context_id: ContextId) -> PutContextRequest<'_>[src]

Makes a request builder to update a context.

pub fn get_contexts(&mut self) -> GetContextsRequest<'_>[src]

Makes a request builder to get contexts.

pub fn put_attribution(
    &mut self,
    context_id: ContextId,
    artifact_id: ArtifactId
) -> PutAttributionRequest<'_>
[src]

Makes a request builder to create a new attribution.

pub fn put_association(
    &mut self,
    context_id: ContextId,
    execution_id: ExecutionId
) -> PutAssociationRequest<'_>
[src]

Makes a request builder to create a new association.

pub fn put_event(
    &mut self,
    execution_id: ExecutionId,
    artifact_id: ArtifactId
) -> PutEventRequest<'_>
[src]

Makes a request builder to create a new event.

pub fn get_events(&mut self) -> GetEventsRequest<'_>[src]

Makes a request builder to get events.

Trait Implementations

impl Debug for MetadataStore[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,