pub struct JobParameter { /* private fields */ }Expand description
One typed job parameter and its identity role.
Implementations§
Source§impl JobParameter
impl JobParameter
Sourcepub const fn new(value: ParameterValue, role: ParameterRole) -> Self
pub const fn new(value: ParameterValue, role: ParameterRole) -> Self
Constructs a typed job parameter.
Sourcepub const fn value(&self) -> &ParameterValue
pub const fn value(&self) -> &ParameterValue
Borrows the typed value.
Sourcepub const fn role(&self) -> ParameterRole
pub const fn role(&self) -> ParameterRole
Returns the identity role.
Sourcepub const fn is_identifying(&self) -> bool
pub const fn is_identifying(&self) -> bool
Returns whether the parameter participates in instance identity.
Trait Implementations§
Source§impl Clone for JobParameter
impl Clone for JobParameter
Source§fn clone(&self) -> JobParameter
fn clone(&self) -> JobParameter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JobParameter
impl Debug for JobParameter
impl Eq for JobParameter
Source§impl Hash for JobParameter
impl Hash for JobParameter
Source§impl Ord for JobParameter
impl Ord for JobParameter
Source§fn cmp(&self, other: &JobParameter) -> Ordering
fn cmp(&self, other: &JobParameter) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for JobParameter
impl PartialEq for JobParameter
Source§impl PartialOrd for JobParameter
impl PartialOrd for JobParameter
impl StructuralPartialEq for JobParameter
Auto Trait Implementations§
impl Freeze for JobParameter
impl RefUnwindSafe for JobParameter
impl Send for JobParameter
impl Sync for JobParameter
impl Unpin for JobParameter
impl UnsafeUnpin for JobParameter
impl UnwindSafe for JobParameter
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