#[non_exhaustive]pub struct ScriptKind {
pub files: Vec<ScriptFile>,
pub max_datasize: Option<String>,
pub start_mem_factor: Option<String>,
pub traceoptions: Option<Traceoptions>,
pub allow_transients: bool,
pub direct_access: bool,
pub allow_url_for_python: bool,
pub no_allow_url: bool,
}Expand description
The commit, op or snmp block of system scripts. The options only some kinds have are unset
for the others.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.files: Vec<ScriptFile>§max_datasize: Option<String>§start_mem_factor: Option<String>Percentage, from start { start-options { mem-factor } }.
traceoptions: Option<Traceoptions>§allow_transients: boolCommit scripts only.
direct_access: boolCommit scripts only.
allow_url_for_python: boolOp scripts only.
no_allow_url: boolOp scripts only.
Trait Implementations§
Source§impl Clone for ScriptKind
impl Clone for ScriptKind
Source§impl Debug for ScriptKind
impl Debug for ScriptKind
impl Eq for ScriptKind
Source§impl PartialEq for ScriptKind
impl PartialEq for ScriptKind
impl StructuralPartialEq for ScriptKind
Auto Trait Implementations§
impl Forget for ScriptKind
impl Freeze for ScriptKindwhere
*const u8 is !null: Freeze,
PhantomData<ScriptFile>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<TraceFlag>: Freeze,
impl Move for ScriptKind
impl RefUnwindSafe for ScriptKind
impl Send for ScriptKindwhere
RawVecInner: Send,
impl Sync for ScriptKindwhere
RawVecInner: Sync,
impl Unpin for ScriptKind
impl UnsafeUnpin for ScriptKindwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<ScriptFile>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<TraceFlag>: UnsafeUnpin,
impl UnwindSafe for ScriptKindwhere
RawVecInner: UnwindSafe,
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