#[non_exhaustive]pub struct ScriptFile {Show 15 fields
pub name: String,
pub source: Option<String>,
pub checksum_algorithm: Option<String>,
pub checksum: Option<String>,
pub cert_file: Option<String>,
pub routing_instance: Option<String>,
pub start_mem_factor: Option<String>,
pub optional: bool,
pub allow_transients: bool,
pub command: Option<String>,
pub description: Option<String>,
pub allow_commands: Option<String>,
pub arguments: Vec<ScriptArgument>,
pub python_script_user: Option<String>,
pub oids: Vec<ScriptOid>,
}Expand description
A file <name> of the commit, op or SNMP scripts. The options only some kinds have are unset or
empty 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.name: String§source: Option<String>The URL scripts are refreshed from.
checksum_algorithm: Option<String>md5, sha-256 or sha1, from checksum.
checksum: Option<String>§cert_file: Option<String>The certificate used to validate the server when refreshing from HTTPS.
routing_instance: Option<String>§start_mem_factor: Option<String>Percentage, from start { start-options { mem-factor } }.
optional: boolCommit scripts only.
allow_transients: boolCommit scripts only.
command: Option<String>Op scripts only: an alias for the file name.
description: Option<String>Op scripts only.
allow_commands: Option<String>Op scripts only.
arguments: Vec<ScriptArgument>Op scripts only.
python_script_user: Option<String>SNMP scripts only.
oids: Vec<ScriptOid>SNMP scripts only.
Trait Implementations§
Source§impl Clone for ScriptFile
impl Clone for ScriptFile
Source§impl Debug for ScriptFile
impl Debug for ScriptFile
impl Eq for ScriptFile
Source§impl PartialEq for ScriptFile
impl PartialEq for ScriptFile
impl StructuralPartialEq for ScriptFile
Auto Trait Implementations§
impl Forget for ScriptFile
impl Freeze for ScriptFilewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ScriptArgument>: Freeze,
PhantomData<ScriptOid>: Freeze,
impl Move for ScriptFile
impl RefUnwindSafe for ScriptFile
impl Send for ScriptFilewhere
RawVecInner: Send,
impl Sync for ScriptFilewhere
RawVecInner: Sync,
impl Unpin for ScriptFile
impl UnsafeUnpin for ScriptFilewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ScriptArgument>: UnsafeUnpin,
PhantomData<ScriptOid>: UnsafeUnpin,
impl UnwindSafe for ScriptFilewhere
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