pub struct MorphCliSchema {Show 14 fields
pub enabled_recipes: Vec<String>,
pub excluded_paths: Vec<String>,
pub max_file_size_kb: usize,
pub dry_run_default: bool,
pub backup_enabled: bool,
pub preview_lines: usize,
pub allow_risky_transforms: bool,
pub disabled_recipes: Vec<String>,
pub allow_risky_recipes: Vec<String>,
pub custom_globs: Vec<String>,
pub max_files: usize,
pub max_duration_seconds: u64,
pub profiles: HashMap<String, ConfigProfile>,
pub hooks: HooksConfig,
}Fields§
§enabled_recipes: Vec<String>§excluded_paths: Vec<String>§max_file_size_kb: usize§dry_run_default: bool§backup_enabled: bool§preview_lines: usize§allow_risky_transforms: bool§disabled_recipes: Vec<String>§allow_risky_recipes: Vec<String>§custom_globs: Vec<String>§max_files: usize§max_duration_seconds: u64§profiles: HashMap<String, ConfigProfile>§hooks: HooksConfigImplementations§
Source§impl MorphCliSchema
impl MorphCliSchema
pub fn validate(&self) -> Vec<String>
pub fn is_excluded(&self, path: &Path) -> bool
pub fn should_skip_file(&self, path: &Path, content: &str) -> SkipDecision
Trait Implementations§
Source§impl Clone for MorphCliSchema
impl Clone for MorphCliSchema
Source§fn clone(&self) -> MorphCliSchema
fn clone(&self) -> MorphCliSchema
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MorphCliSchema
impl Debug for MorphCliSchema
Source§impl Default for MorphCliSchema
impl Default for MorphCliSchema
Source§impl<'de> Deserialize<'de> for MorphCliSchema
impl<'de> Deserialize<'de> for MorphCliSchema
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 MorphCliSchema
impl RefUnwindSafe for MorphCliSchema
impl Send for MorphCliSchema
impl Sync for MorphCliSchema
impl Unpin for MorphCliSchema
impl UnsafeUnpin for MorphCliSchema
impl UnwindSafe for MorphCliSchema
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more