Struct mlmd::requests::GetEventsRequest
source · [−]pub struct GetEventsRequest<'a> { /* private fields */ }
Expand description
Request builder for MetadataStore::get_events
.
Implementations
sourceimpl<'a> GetEventsRequest<'a>
impl<'a> GetEventsRequest<'a>
sourcepub fn execution(self, id: ExecutionId) -> Self
pub fn execution(self, id: ExecutionId) -> Self
Specifies the execution related to the target event.
If you need to specify multiple executions, please use executions
instead.
sourcepub fn executions(self, ids: impl Iterator<Item = ExecutionId>) -> Self
pub fn executions(self, ids: impl Iterator<Item = ExecutionId>) -> Self
Specifies the executions related to the target events.
sourcepub fn artifact(self, id: ArtifactId) -> Self
pub fn artifact(self, id: ArtifactId) -> Self
Specifies the artifact related to the target event.
If you need to specify multiple artifacts, please use artifacts
instead.
sourcepub fn artifacts(self, ids: impl Iterator<Item = ArtifactId>) -> Self
pub fn artifacts(self, ids: impl Iterator<Item = ArtifactId>) -> Self
Specifies the artifacts related to the target events.
sourcepub fn offset(self, n: usize) -> Self
pub fn offset(self, n: usize) -> Self
Specifies how many leading events are skipped from the result.
Note that if GetEventsRequest::limit
is not specified, this option has no effect.
sourcepub fn order_by(self, field: EventOrderByField, asc: bool) -> Self
pub fn order_by(self, field: EventOrderByField, asc: bool) -> Self
Specifies how to order the result.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for GetEventsRequest<'a>
impl<'a> Send for GetEventsRequest<'a>
impl<'a> !Sync for GetEventsRequest<'a>
impl<'a> Unpin for GetEventsRequest<'a>
impl<'a> !UnwindSafe for GetEventsRequest<'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