pub struct SourceArchive {
pub directories: Vec<String>,
pub files: Vec<SourceFile>,
}Fields§
§directories: Vec<String>§files: Vec<SourceFile>Implementations§
Source§impl SourceArchive
impl SourceArchive
pub fn capture(path: &Path) -> Result<Self, ArchiveError>
Sourcepub fn capture_beneath(
root: &Path,
relative: &Path,
) -> Result<Self, ArchiveError>
pub fn capture_beneath( root: &Path, relative: &Path, ) -> Result<Self, ArchiveError>
Resolve a configured source root through directory descriptors. A checkout cannot redirect the upload to an absolute path, parent, or symlink target.
pub fn validate(&self) -> Result<usize, ArchiveError>
Trait Implementations§
Source§impl Clone for SourceArchive
impl Clone for SourceArchive
Source§impl Debug for SourceArchive
impl Debug for SourceArchive
Source§impl<'de> Deserialize<'de> for SourceArchive
impl<'de> Deserialize<'de> for SourceArchive
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SourceArchive
Source§impl PartialEq for SourceArchive
impl PartialEq for SourceArchive
Source§impl Serialize for SourceArchive
impl Serialize for SourceArchive
impl StructuralPartialEq for SourceArchive
Auto Trait Implementations§
impl Freeze for SourceArchive
impl RefUnwindSafe for SourceArchive
impl Send for SourceArchive
impl Sync for SourceArchive
impl Unpin for SourceArchive
impl UnsafeUnpin for SourceArchive
impl UnwindSafe for SourceArchive
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