pub struct VectorGeneratorPolicy {
pub timeout_ms: u64,
pub max_stdout_bytes: usize,
pub max_stderr_bytes: usize,
pub max_input_bytes: usize,
pub max_chunks: usize,
pub require_absolute_executable: bool,
pub reject_world_writable_executable: bool,
pub allowed_executable_roots: Vec<String>,
pub preserve_env_vars: Vec<String>,
}Expand description
Security and resource policy for the external vector generator subprocess.
Fields§
§timeout_ms: u64§max_stdout_bytes: usize§max_stderr_bytes: usize§max_input_bytes: usize§max_chunks: usize§require_absolute_executable: bool§reject_world_writable_executable: bool§allowed_executable_roots: Vec<String>§preserve_env_vars: Vec<String>Trait Implementations§
Source§impl Clone for VectorGeneratorPolicy
impl Clone for VectorGeneratorPolicy
Source§fn clone(&self) -> VectorGeneratorPolicy
fn clone(&self) -> VectorGeneratorPolicy
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 VectorGeneratorPolicy
impl Debug for VectorGeneratorPolicy
Source§impl Default for VectorGeneratorPolicy
impl Default for VectorGeneratorPolicy
Source§impl<'de> Deserialize<'de> for VectorGeneratorPolicy
impl<'de> Deserialize<'de> for VectorGeneratorPolicy
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
Source§impl PartialEq for VectorGeneratorPolicy
impl PartialEq for VectorGeneratorPolicy
Source§impl Serialize for VectorGeneratorPolicy
impl Serialize for VectorGeneratorPolicy
impl Eq for VectorGeneratorPolicy
impl StructuralPartialEq for VectorGeneratorPolicy
Auto Trait Implementations§
impl Freeze for VectorGeneratorPolicy
impl RefUnwindSafe for VectorGeneratorPolicy
impl Send for VectorGeneratorPolicy
impl Sync for VectorGeneratorPolicy
impl Unpin for VectorGeneratorPolicy
impl UnsafeUnpin for VectorGeneratorPolicy
impl UnwindSafe for VectorGeneratorPolicy
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.