pub struct ConvertOptions {
pub include_pattern: Option<String>,
pub exclude_pattern: Option<String>,
pub base64: bool,
pub prefix: Option<String>,
pub transform: Option<KeyTransform>,
}Expand description
Options for format conversion
✅ CLIPPY FIX: Uses #[derive(Default)] instead of manual implementation
Fields§
§include_pattern: Option<String>Include only variables matching this glob pattern
exclude_pattern: Option<String>Exclude variables matching this glob pattern
base64: boolBase64-encode all values
prefix: Option<String>Prefix to add to all keys
transform: Option<KeyTransform>Key transformation to apply
Implementations§
Source§impl ConvertOptions
impl ConvertOptions
Sourcepub fn filter_vars(
&self,
vars: &HashMap<String, String>,
) -> HashMap<String, String>
pub fn filter_vars( &self, vars: &HashMap<String, String>, ) -> HashMap<String, String>
Filter variables based on include/exclude patterns
Sourcepub fn transform_key(&self, key: &str) -> String
pub fn transform_key(&self, key: &str) -> String
Transform a key according to the specified transformation
Sourcepub fn transform_value(&self, value: &str) -> String
pub fn transform_value(&self, value: &str) -> String
Transform a value (base64 encode if enabled)
Trait Implementations§
Source§impl Clone for ConvertOptions
impl Clone for ConvertOptions
Source§fn clone(&self) -> ConvertOptions
fn clone(&self) -> ConvertOptions
Returns a duplicate 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 ConvertOptions
impl Debug for ConvertOptions
Source§impl Default for ConvertOptions
impl Default for ConvertOptions
Source§fn default() -> ConvertOptions
fn default() -> ConvertOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConvertOptions
impl RefUnwindSafe for ConvertOptions
impl Send for ConvertOptions
impl Sync for ConvertOptions
impl Unpin for ConvertOptions
impl UnsafeUnpin for ConvertOptions
impl UnwindSafe for ConvertOptions
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