pub struct ExperimentArtifactClient { /* private fields */ }Expand description
A scope for artifact operations within a specific experiment
Implementations§
Source§impl ExperimentArtifactClient
impl ExperimentArtifactClient
Sourcepub fn upload<E>(
&self,
name: impl Into<String>,
kind: ArtifactKind,
artifact: E,
settings: &<E as BundleEncode>::Settings,
) -> Result<String, ArtifactError>where
E: BundleEncode,
pub fn upload<E>(
&self,
name: impl Into<String>,
kind: ArtifactKind,
artifact: E,
settings: &<E as BundleEncode>::Settings,
) -> Result<String, ArtifactError>where
E: BundleEncode,
Upload an artifact using the BundleEncode trait
Sourcepub fn download<D>(
&self,
name: impl AsRef<str>,
settings: &<D as BundleDecode>::Settings,
) -> Result<D, ArtifactError>where
D: BundleDecode,
pub fn download<D>(
&self,
name: impl AsRef<str>,
settings: &<D as BundleDecode>::Settings,
) -> Result<D, ArtifactError>where
D: BundleDecode,
Download an artifact and decode it using the BundleDecode trait
Sourcepub fn download_raw(
&self,
name: impl AsRef<str>,
) -> Result<InMemoryBundleReader, ArtifactError>
pub fn download_raw( &self, name: impl AsRef<str>, ) -> Result<InMemoryBundleReader, ArtifactError>
Download an artifact as a raw memory bundle reader
Sourcepub fn fetch(
&self,
name: impl AsRef<str>,
) -> Result<ArtifactResponse, ArtifactError>
pub fn fetch( &self, name: impl AsRef<str>, ) -> Result<ArtifactResponse, ArtifactError>
Fetch information about an artifact by name
Trait Implementations§
Source§impl Clone for ExperimentArtifactClient
impl Clone for ExperimentArtifactClient
Source§fn clone(&self) -> ExperimentArtifactClient
fn clone(&self) -> ExperimentArtifactClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExperimentArtifactClient
impl !RefUnwindSafe for ExperimentArtifactClient
impl Send for ExperimentArtifactClient
impl Sync for ExperimentArtifactClient
impl Unpin for ExperimentArtifactClient
impl !UnwindSafe for ExperimentArtifactClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more