pub struct ExtensionParams {
pub start: Option<i64>,
pub end: Option<i64>,
pub signal: String,
pub args: Vec<(String, String)>,
}Expand description
Parameters for extension commands.
Extension commands receive a dynamic list of key-value arguments
parsed from CLI flags declared in CommandDescriptor.
Repeatable flags produce multiple entries with the same key.
Fields§
§start: Option<i64>Start time as Unix seconds (if applicable).
end: Option<i64>End time as Unix seconds (if applicable).
signal: StringThe signal group this extension command belongs to.
args: Vec<(String, String)>Dynamic key-value arguments from extension command flags.
Implementations§
Trait Implementations§
Source§impl Clone for ExtensionParams
impl Clone for ExtensionParams
Source§fn clone(&self) -> ExtensionParams
fn clone(&self) -> ExtensionParams
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 moreAuto Trait Implementations§
impl Freeze for ExtensionParams
impl RefUnwindSafe for ExtensionParams
impl Send for ExtensionParams
impl Sync for ExtensionParams
impl Unpin for ExtensionParams
impl UnsafeUnpin for ExtensionParams
impl UnwindSafe for ExtensionParams
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