pub enum VersionRule<'a> {
Exactly(&'a str),
NotOlderThan(&'a str),
}Expand description
What the trusted comment must say about the version.
Variants§
Exactly(&'a str)
Exactly this version (an archive, the manifest).
NotOlderThan(&'a str)
A version that is not older than this one (security.json, which is
republished for the latest release: an old copy must not replace it).
Trait Implementations§
Source§impl<'a> Clone for VersionRule<'a>
impl<'a> Clone for VersionRule<'a>
impl<'a> Copy for VersionRule<'a>
Source§impl<'a> Debug for VersionRule<'a>
impl<'a> Debug for VersionRule<'a>
impl<'a> Eq for VersionRule<'a>
Source§impl<'a> PartialEq for VersionRule<'a>
impl<'a> PartialEq for VersionRule<'a>
impl<'a> StructuralPartialEq for VersionRule<'a>
Auto Trait Implementations§
impl<'a> Forget for VersionRule<'a>
impl<'a> Freeze for VersionRule<'a>
impl<'a> Move for VersionRule<'a>
impl<'a> RefUnwindSafe for VersionRule<'a>
impl<'a> Send for VersionRule<'a>
impl<'a> Sync for VersionRule<'a>
impl<'a> Unpin for VersionRule<'a>
impl<'a> UnsafeUnpin for VersionRule<'a>
impl<'a> UnwindSafe for VersionRule<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.