pub struct Artifact<T> { /* private fields */ }Implementations§
Source§impl<T> Artifact<T>
impl<T> Artifact<T>
pub fn new(bytes: impl Into<Vec<u8>>) -> Self
pub fn suggest_destination(self, destination: impl Into<PathBuf>) -> Self
pub fn allow_stdout(self) -> Self
pub fn with_report(self, report: T) -> Self
pub fn bytes(&self) -> &[u8] ⓘ
pub fn suggested_destination(&self) -> Option<&Path>
pub fn stdout_allowed(&self) -> bool
pub fn report(&self) -> Option<&T>
pub fn into_parts(self) -> (Vec<u8>, Option<PathBuf>, bool, Option<T>)
Trait Implementations§
impl<T: Eq> Eq for Artifact<T>
impl<T: PartialEq> StructuralPartialEq for Artifact<T>
Auto Trait Implementations§
impl<T> Freeze for Artifact<T>
impl<T> RefUnwindSafe for Artifact<T>where
Option<T>: RefUnwindSafe,
impl<T> Send for Artifact<T>
impl<T> Sync for Artifact<T>
impl<T> Unpin for Artifact<T>
impl<T> UnsafeUnpin for Artifact<T>where
Option<T>: UnsafeUnpin,
impl<T> UnwindSafe for Artifact<T>where
Option<T>: UnwindSafe,
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