Struct ruplicity::collections::SignatureFile
source · pub struct SignatureFile {
pub file_name: String,
pub time: Timespec,
pub compressed: bool,
pub encrypted: bool,
}
Expand description
Information about a signature file.
Fields§
§file_name: String
The file name of the signature file.
time: Timespec
The snapshot time.
compressed: bool
Determine if the signature is gzipped or not.
encrypted: bool
Determine if the signature is encrypted or not.
Implementations§
source§impl SignatureFile
impl SignatureFile
sourcepub fn from_file_and_info(fname: &str, pr: &Info) -> Self
pub fn from_file_and_info(fname: &str, pr: &Info) -> Self
Construct a signature file from a file name and infos.
sourcepub fn from_filename_info(info: &FileNameInfo<'_>) -> Self
pub fn from_filename_info(info: &FileNameInfo<'_>) -> Self
Construct a signature file from file name info.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SignatureFile
impl Send for SignatureFile
impl Sync for SignatureFile
impl Unpin for SignatureFile
impl UnwindSafe for SignatureFile
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