pub struct ConfigSpec {
pub done_cache: Option<String>,
pub xsa_git: Option<String>,
pub cvelist_git: Option<String>,
pub cvelist_remote_upstream: Option<String>,
pub cvelist_remote_xensec: Option<String>,
pub cvelist_upstream_token: Option<PathBuf>,
pub git_ssh_command: Option<String>,
pub committer_name: Option<String>,
pub committer_email: Option<String>,
pub cvelist_upstream: Config,
}Fields§
§done_cache: Option<String>sqlite3 db for cacheing work already done
xsa_git: Option<String>path to xsa.git working tree
cvelist_git: Option<String>path to cvelist.git tree (can be bare)
cvelist_remote_upstream: Option<String>remote name for cvelist.git upstream
cvelist_remote_xensec: Option<String>remote name for cvelist.git upstream
cvelist_upstream_token: Option<PathBuf>Path to cvelist upstream forge access token
git_ssh_command: Option<String>Value to set for GIT_SSH_COMMAND environment variable
committer_name: Option<String>Name to put in git commits in the cvelist git history
committer_email: Option<String>Email address to put in git commits in the cvelist git history
cvelist_upstream: ConfigUpstream forge details
Implementations§
Source§impl ConfigSpec
impl ConfigSpec
Trait Implementations§
Source§impl Clone for ConfigSpec
impl Clone for ConfigSpec
Source§impl Debug for ConfigSpec
impl Debug for ConfigSpec
Source§impl Default for ConfigSpec
impl Default for ConfigSpec
Source§impl<'de> Deserialize<'de> for ConfigSpec
impl<'de> Deserialize<'de> for ConfigSpec
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
Source§impl Merge for ConfigSpec
impl Merge for ConfigSpec
Source§impl StructOpt for ConfigSpec
impl StructOpt for ConfigSpec
Source§fn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
Builds the struct from
clap::ArgMatches. It’s guaranteed to succeed
if matches originates from an App generated by StructOpt::clap called on
the same type, otherwise it must panic.Source§fn from_args() -> Selfwhere
Self: Sized,
fn from_args() -> Selfwhere
Self: Sized,
Builds the struct from the command line arguments (
std::env::args_os).
Calls clap::Error::exit on failure, printing the error message and aborting the program.Source§fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
Builds the struct from the command line arguments (
std::env::args_os).
Unlike StructOpt::from_args, returns clap::Error on failure instead of aborting the program,
so calling .exit is up to you.Source§fn from_iter<I>(iter: I) -> Self
fn from_iter<I>(iter: I) -> Self
Gets the struct from any iterator such as a
Vec of your making.
Print the error message and quit the program in case of failure. Read moreAuto Trait Implementations§
impl Freeze for ConfigSpec
impl RefUnwindSafe for ConfigSpec
impl Send for ConfigSpec
impl Sync for ConfigSpec
impl Unpin for ConfigSpec
impl UnsafeUnpin for ConfigSpec
impl UnwindSafe for ConfigSpec
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