X-Git-Url: https://code.octet-stream.net/hashgood/blobdiff_plain/1519fdaacd380be03c2e24128027cf97de6e02f6..e5c23eae73ae16d9fe574ed4b2ce015034035514:/src/main.rs?ds=inline diff --git a/src/main.rs b/src/main.rs index f0bf09c..2c7e189 100644 --- a/src/main.rs +++ b/src/main.rs @@ -71,6 +71,7 @@ impl Algorithm { } /// The method by which one or more hashes were supplied to verify the calculated digest +#[derive(Debug, PartialEq)] pub enum VerificationSource { CommandArgument, Clipboard, @@ -102,6 +103,7 @@ impl Hash { } /// A possible hash to match against. The algorithm is assumed. +#[derive(Debug, PartialEq)] pub struct CandidateHash { bytes: Vec, filename: Option, @@ -109,6 +111,7 @@ pub struct CandidateHash { /// A list of candidate hashes that our input could potentially match. At this point it is /// assumed that we will be verifying a digest of a particular, single algorithm. +#[derive(Debug, PartialEq)] pub struct CandidateHashes { alg: Algorithm, hashes: Vec,