pub struct ArtifactStore { /* private fields */ }Implementations§
Source§impl ArtifactStore
impl ArtifactStore
pub fn new(run_id: impl Into<String>) -> Result<Self, ToolError>
pub fn with_max_bytes(self, max_bytes: usize) -> Self
pub fn with_run_limits(self, max_run_bytes: usize, max_files: usize) -> Self
pub fn root(&self) -> PathBuf
pub async fn write_text( &self, rel_path: &str, content: &str, content_type: Option<&str>, ) -> Result<ArtifactReceipt, ToolError>
Trait Implementations§
Source§impl Clone for ArtifactStore
impl Clone for ArtifactStore
Source§fn clone(&self) -> ArtifactStore
fn clone(&self) -> ArtifactStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ArtifactStore
impl RefUnwindSafe for ArtifactStore
impl Send for ArtifactStore
impl Sync for ArtifactStore
impl Unpin for ArtifactStore
impl UnsafeUnpin for ArtifactStore
impl UnwindSafe for ArtifactStore
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