#[non_exhaustive]pub enum LairServerSignatureFallback {
None,
Command {
program: PathBuf,
args: Option<Vec<String>>,
},
}
Expand description
Enum for configuring signature fallback handling.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No fallback handling. If a pub key does not exist in the lair store, a sign_by_pub_key request will error.
Command
Fields
Specify a command to execute on lair server start. This command will be fed framed json signature requests on stdin, and is expected to respond to those requests with framed json responses on stdout.
Trait Implementations§
source§impl Clone for LairServerSignatureFallback
impl Clone for LairServerSignatureFallback
source§fn clone(&self) -> LairServerSignatureFallback
fn clone(&self) -> LairServerSignatureFallback
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LairServerSignatureFallback
impl Debug for LairServerSignatureFallback
source§impl<'de> Deserialize<'de> for LairServerSignatureFallback
impl<'de> Deserialize<'de> for LairServerSignatureFallback
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for LairServerSignatureFallback
impl Send for LairServerSignatureFallback
impl Sync for LairServerSignatureFallback
impl Unpin for LairServerSignatureFallback
impl UnwindSafe for LairServerSignatureFallback
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