Skip to main content

SignVerify

Enum SignVerify 

Source
pub enum SignVerify {
    Off,
    All,
    Engines(Vec<String>),
}
Expand description

The value of a sign-verify key: the engines that verify signatures.

The value is a boolean in the key-file spelling (true, false, 1, 0), or a key-file list of engine names. A ; alone separates the names, and \; is a ; in a name. A ; after the last name adds no name.

Each name is used as written. A , and a space stay in a name, and an empty name before the last ; stays in the list. No engine has the name ed25519,spki, the name ed25519 of ed25519; ed25519, or the empty first name of ;ed25519. A pull refuses a name that no engine has. The ostree command also refuses these values.

Variants§

§

Off

No sign-api verification: the key is absent, empty, false, or 0.

§

All

Every engine of this build, selected by true.

§

Engines(Vec<String>)

The engines that the value names, in the order of the value.

Trait Implementations§

Source§

impl Clone for SignVerify

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SignVerify

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for SignVerify

Source§

impl PartialEq for SignVerify

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for SignVerify

Source§

impl Value for SignVerify

The text is read as the sign-verify key of a remote reads it. The text true or 1 gives SignVerify::All, and false, 0, or the empty text gives SignVerify::Off. Each other text is read as decode_string_list reads it, and gives SignVerify::Engines. Each text is a value, so parse refuses only a malformed escape sequence.

SignVerify::Off gives false, SignVerify::All gives true, and SignVerify::Engines gives the names as encode_string_list writes them, with a ; after each name. Thus parse of the text of format gives the same value again, also for a list of one name such as true or 0, a name with a ;, and an empty name. The one exception is an empty list of engines: it gives the empty text, which parses as SignVerify::Off.

Source§

fn parse(raw: &str) -> Result<SignVerify, ValueError>

Parses the raw text of a value, as the key file holds it. Read more
Source§

fn format(&self) -> String

Returns the raw text of the value, as a key file holds it.

Auto Trait Implementations§

§

impl Forget for SignVerify

§

impl Freeze for SignVerify

§

impl Move for SignVerify

§

impl RefUnwindSafe for SignVerify

§

impl Send for SignVerify
where RawVecInner: Send,

§

impl Sync for SignVerify
where RawVecInner: Sync,

§

impl Unpin for SignVerify
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for SignVerify

§

impl UnwindSafe for SignVerify
where RawVecInner: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.