pub struct Target<'a> {
pub name: &'a str,
pub size: u64,
pub checksum: Option<&'a Checksum>,
}Expand description
Borrowed view of a Source item handed to sinks at prepare time. The
source URL is resolved by the engine and the caller’s item is its own
concern, so neither appears here — sinks are domain-agnostic.
Fields§
§name: &'a str§size: u64§checksum: Option<&'a Checksum>Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Target<'a>
impl<'a> RefUnwindSafe for Target<'a>
impl<'a> Send for Target<'a>
impl<'a> Sync for Target<'a>
impl<'a> Unpin for Target<'a>
impl<'a> UnsafeUnpin for Target<'a>
impl<'a> UnwindSafe for Target<'a>
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