pub struct NotPinned {
pub what: String,
pub reference: String,
pub defect: PinDefect,
}Expand description
An image reference that is not pinned by a sha256 digest, and why not.
Carries what because which setting to go and change is half of any
message a reader can act on, and PinDefect because what is wrong with
the reference is the other half. It used to carry only the first and assert
the second, which is the defect PinDefect documents.
Its audience is deliberately stated wide: anyone who wrote a reference this module will not accept, including people who have already pinned. The previous doc comment said this was “a message met by people who have only ever typed a tag” — a type narrowing its own audience and then being used for a wider one, which is how the wrong sentence stayed comfortable for three of its four callers.
Fields§
§what: StringWhat wanted the image, so the reader knows which setting to change.
reference: StringThe reference as it was written.
defect: PinDefectWhat is wrong with it, which selects both the sentence and the guidance.
Trait Implementations§
impl Eq for NotPinned
Source§impl Error for NotPinned
impl Error for NotPinned
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
impl StructuralPartialEq for NotPinned
Auto Trait Implementations§
impl Freeze for NotPinned
impl RefUnwindSafe for NotPinned
impl Send for NotPinned
impl Sync for NotPinned
impl Unpin for NotPinned
impl UnsafeUnpin for NotPinned
impl UnwindSafe for NotPinned
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.