pub struct RewriteConfig {
pub skip: Option<SkipConfig>,
pub pipe: Option<PipeConfig>,
pub rewrite: Vec<RewriteRule>,
pub permissions: Option<PermissionsConfig>,
pub debug: Option<DebugConfig>,
pub transparent: Option<TransparentConfig>,
}Expand description
User-provided overrides loaded from rewrites.toml.
Fields§
§skip: Option<SkipConfig>Additional skip patterns (commands matching these are never rewritten).
pipe: Option<PipeConfig>Pipe stripping and prefer-less-context behaviour.
rewrite: Vec<RewriteRule>User-defined rewrite rules (checked before auto-generated filter rules).
permissions: Option<PermissionsConfig>Permission engine configuration (external sub-hook delegation).
debug: Option<DebugConfig>Debug/diagnostic settings (all off by default).
transparent: Option<TransparentConfig>Commands whose argv is opaque to tokf because it executes in a
different shell environment (typically a remote host or container).
User regex [[rewrite]] rules are not applied to these commands —
only argv-preserving wraps (tokf run <cmd>) and pipe-flag injection
remain.
Trait Implementations§
Source§impl Clone for RewriteConfig
impl Clone for RewriteConfig
Source§fn clone(&self) -> RewriteConfig
fn clone(&self) -> RewriteConfig
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 RewriteConfig
impl Debug for RewriteConfig
Source§impl Default for RewriteConfig
impl Default for RewriteConfig
Source§fn default() -> RewriteConfig
fn default() -> RewriteConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RewriteConfig
impl<'de> Deserialize<'de> for RewriteConfig
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 RewriteConfig
impl RefUnwindSafe for RewriteConfig
impl Send for RewriteConfig
impl Sync for RewriteConfig
impl Unpin for RewriteConfig
impl UnsafeUnpin for RewriteConfig
impl UnwindSafe for RewriteConfig
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