pub struct CloudImage {
pub url: Url,
pub name: String,
pub checksum: CheckSums,
pub date: NaiveDateTime,
}Fields§
§url: Url§name: String§checksum: CheckSums§date: NaiveDateTimeImplementations§
Source§impl CloudImage
impl CloudImage
Sourcepub fn new(
url: Url,
checksum: CheckSums,
name: String,
date: NaiveDateTime,
) -> Self
pub fn new( url: Url, checksum: CheckSums, name: String, date: NaiveDateTime, ) -> Self
Creates a new CloudImage structure with url,
checksum, name and date fields
Sourcepub fn verify(&self, destination: &Path, normalize: &Option<String>) -> bool
pub fn verify(&self, destination: &Path, normalize: &Option<String>) -> bool
Normalizes its filename before verifying itself that its checksum it correct.
pub fn is_in_db(&self, db: &DbImageHistory) -> bool
Trait Implementations§
Source§impl Debug for CloudImage
impl Debug for CloudImage
Source§impl Default for CloudImage
impl Default for CloudImage
Source§fn default() -> CloudImage
fn default() -> CloudImage
Returns the “default value” for a type. Read more
Source§impl Display for CloudImage
impl Display for CloudImage
Source§impl PartialEq for CloudImage
impl PartialEq for CloudImage
impl StructuralPartialEq for CloudImage
Auto Trait Implementations§
impl Freeze for CloudImage
impl RefUnwindSafe for CloudImage
impl Send for CloudImage
impl Sync for CloudImage
impl Unpin for CloudImage
impl UnsafeUnpin for CloudImage
impl UnwindSafe for CloudImage
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