pub struct GuardrailsConfig {
pub blocked_commands: Vec<String>,
pub env_allowlist: Vec<String>,
pub max_tokens_per_session: u64,
}Fields§
§blocked_commands: Vec<String>§env_allowlist: Vec<String>§max_tokens_per_session: u64Trait Implementations§
Source§impl Clone for GuardrailsConfig
impl Clone for GuardrailsConfig
Source§fn clone(&self) -> GuardrailsConfig
fn clone(&self) -> GuardrailsConfig
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 GuardrailsConfig
impl Debug for GuardrailsConfig
Source§impl Default for GuardrailsConfig
impl Default for GuardrailsConfig
Source§impl<'de> Deserialize<'de> for GuardrailsConfig
impl<'de> Deserialize<'de> for GuardrailsConfig
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 GuardrailsConfig
impl RefUnwindSafe for GuardrailsConfig
impl Send for GuardrailsConfig
impl Sync for GuardrailsConfig
impl Unpin for GuardrailsConfig
impl UnsafeUnpin for GuardrailsConfig
impl UnwindSafe for GuardrailsConfig
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