pub struct HashableFile {
pub relpath: String,
pub bytes: Option<Vec<u8>>,
pub content: Option<String>,
}Expand description
A file participating in a content hash. Exactly one of bytes/content is
used (bytes wins); an absent payload hashes as empty, matching the TS.
Fields§
§relpath: String§bytes: Option<Vec<u8>>§content: Option<String>Auto Trait Implementations§
impl Forget for HashableFile
impl Freeze for HashableFile
impl Move for HashableFile
impl RefUnwindSafe for HashableFile
impl Send for HashableFile
impl Sync for HashableFile
impl Unpin for HashableFile
impl UnsafeUnpin for HashableFile
impl UnwindSafe for HashableFile
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