#[non_exhaustive]pub struct SystemParameterRule {
pub selector: String,
pub parameters: Vec<SystemParameter>,
/* private fields */
}
Expand description
Define a system parameter rule mapping system parameter definitions to methods.
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.selector: String
Selects the methods to which this rule applies. Use ‘*’ to indicate all methods in all APIs.
Refer to selector for syntax details.
parameters: Vec<SystemParameter>
Define parameters. Multiple names may be defined for a parameter. For a given method call, only one of them should be used. If multiple names are used the behavior is implementation-dependent. If none of the specified names are present the behavior is parameter-dependent.
Implementations§
Source§impl SystemParameterRule
impl SystemParameterRule
pub fn new() -> Self
Sourcepub fn set_selector<T: Into<String>>(self, v: T) -> Self
pub fn set_selector<T: Into<String>>(self, v: T) -> Self
Sets the value of selector.
Sourcepub fn set_parameters<T, V>(self, v: T) -> Self
pub fn set_parameters<T, V>(self, v: T) -> Self
Sets the value of parameters.
Trait Implementations§
Source§impl Clone for SystemParameterRule
impl Clone for SystemParameterRule
Source§fn clone(&self) -> SystemParameterRule
fn clone(&self) -> SystemParameterRule
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 SystemParameterRule
impl Debug for SystemParameterRule
Source§impl Default for SystemParameterRule
impl Default for SystemParameterRule
Source§fn default() -> SystemParameterRule
fn default() -> SystemParameterRule
Returns the “default value” for a type. Read more
Source§impl Message for SystemParameterRule
impl Message for SystemParameterRule
Source§impl PartialEq for SystemParameterRule
impl PartialEq for SystemParameterRule
impl StructuralPartialEq for SystemParameterRule
Auto Trait Implementations§
impl Freeze for SystemParameterRule
impl RefUnwindSafe for SystemParameterRule
impl Send for SystemParameterRule
impl Sync for SystemParameterRule
impl Unpin for SystemParameterRule
impl UnwindSafe for SystemParameterRule
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