Struct mlmd::requests::GetArtifactsRequest
source · [−]pub struct GetArtifactsRequest<'a> { /* private fields */ }
Expand description
Request builder for MetadataStore::get_artifacts
.
Implementations
sourceimpl<'a> GetArtifactsRequest<'a>
impl<'a> GetArtifactsRequest<'a>
sourcepub fn type_and_name(self, type_name: &str, artifact_name: &str) -> Self
pub fn type_and_name(self, type_name: &str, artifact_name: &str) -> Self
Specifies the type and name of the target artifact.
sourcepub fn type_and_name_pattern(
self,
type_name: &str,
artifact_name_pattern: &str
) -> Self
pub fn type_and_name_pattern(
self,
type_name: &str,
artifact_name_pattern: &str
) -> Self
Specifies the type and name pattern of the target artifacts.
artifact_name_pattern
can contain wildcard characters for the SQL LIKE statement.
sourcepub fn id(self, artifact_id: ArtifactId) -> Self
pub fn id(self, artifact_id: ArtifactId) -> Self
Specifies the ID of the target artifact.
If you need to specify multiple IDs, please use ids
instead.
sourcepub fn ids(self, artifact_ids: impl Iterator<Item = ArtifactId>) -> Self
pub fn ids(self, artifact_ids: impl Iterator<Item = ArtifactId>) -> Self
Specifies the ID set of the target artifacts.
sourcepub fn context(self, context_id: ContextId) -> Self
pub fn context(self, context_id: ContextId) -> Self
Specifies the context to which the target artifacts belong.
sourcepub fn order_by(self, field: ArtifactOrderByField, asc: bool) -> Self
pub fn order_by(self, field: ArtifactOrderByField, asc: bool) -> Self
Specifies how to order the result.
sourcepub fn offset(self, n: usize) -> Self
pub fn offset(self, n: usize) -> Self
Specifies how many leading artifacts are skipped from the result.
Note that if GetArtifactsRequest::limit
is not specified, this option has no effect.
sourcepub fn create_time(self, range: impl RangeBounds<Duration>) -> Self
pub fn create_time(self, range: impl RangeBounds<Duration>) -> Self
Specifies creation time range.
sourcepub fn update_time(self, range: impl RangeBounds<Duration>) -> Self
pub fn update_time(self, range: impl RangeBounds<Duration>) -> Self
Specifies update time range.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for GetArtifactsRequest<'a>
impl<'a> Send for GetArtifactsRequest<'a>
impl<'a> !Sync for GetArtifactsRequest<'a>
impl<'a> Unpin for GetArtifactsRequest<'a>
impl<'a> !UnwindSafe for GetArtifactsRequest<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more