pub struct RunParameters {
pub autorun: bool,
pub priority: i32,
}Fields§
§autorun: bool§priority: i32Implementations§
Source§impl RunParameters
impl RunParameters
pub fn new() -> Self
Sourcepub fn to_association(self, script: ResourceId) -> ScriptAssociation
pub fn to_association(self, script: ResourceId) -> ScriptAssociation
Converts self into a script association for the given Script.
Trait Implementations§
Source§impl Clone for RunParameters
impl Clone for RunParameters
Source§fn clone(&self) -> RunParameters
fn clone(&self) -> RunParameters
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 RunParameters
impl Debug for RunParameters
Source§impl Hash for RunParameters
impl Hash for RunParameters
Source§impl Into<RunParameters> for ScriptAssociation
impl Into<RunParameters> for ScriptAssociation
Source§fn into(self) -> RunParameters
fn into(self) -> RunParameters
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for RunParameters
impl PartialEq for RunParameters
Source§impl PartialOrd for RunParameters
impl PartialOrd for RunParameters
Source§fn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
Ordering is based on the priority field.
If the priority fields are equal and autorun state is equal,
results in the two objects being equal.
If the priority fields are equal, but the autorun fields are not
equal, results in the two being uncomparable.
impl Eq for RunParameters
impl StructuralPartialEq for RunParameters
Auto Trait Implementations§
impl Freeze for RunParameters
impl RefUnwindSafe for RunParameters
impl Send for RunParameters
impl Sync for RunParameters
impl Unpin for RunParameters
impl UnwindSafe for RunParameters
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