pub struct ReviseConfig {
pub template: String,
pub types: Vec<Type>,
pub emojis: Vec<Emoji>,
pub scopes: Vec<String>,
pub auto: Auto,
pub api_key: HashMap<String, String>,
pub hooks: HashMap<HookType, Vec<Hook>>,
pub exclude_files: Vec<String>,
}
Fields§
§template: String
§types: Vec<Type>
§emojis: Vec<Emoji>
§scopes: Vec<String>
§auto: Auto
§api_key: HashMap<String, String>
§hooks: HashMap<HookType, Vec<Hook>>
§exclude_files: Vec<String>
Implementations§
Source§impl ReviseConfig
impl ReviseConfig
pub fn new() -> Self
pub fn get_types(&self) -> Vec<String>
pub fn get_type_key(&self, idx: usize) -> Option<String>
pub fn get_emoji(&self, key: &str) -> Option<String>
pub fn get_scopes(&self) -> Vec<String>
pub fn get_config_path() -> ReviseResult<Option<PathBuf>>
pub fn load_config() -> ReviseResult<Self>
Trait Implementations§
Source§impl Clone for ReviseConfig
impl Clone for ReviseConfig
Source§fn clone(&self) -> ReviseConfig
fn clone(&self) -> ReviseConfig
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 ReviseConfig
impl Debug for ReviseConfig
Source§impl Default for ReviseConfig
impl Default for ReviseConfig
Source§impl<'de> Deserialize<'de> for ReviseConfig
impl<'de> Deserialize<'de> for ReviseConfig
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 Freeze for ReviseConfig
impl RefUnwindSafe for ReviseConfig
impl Send for ReviseConfig
impl Sync for ReviseConfig
impl Unpin for ReviseConfig
impl UnwindSafe for ReviseConfig
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