pub struct SetFeatureElementParams<'a> {
pub feature_code: Option<&'a str>,
pub element_code: Option<&'a str>,
pub exec_order: Option<i64>,
pub display_level: Option<i64>,
pub display_delim: Option<&'a str>,
pub derived: Option<&'a str>,
}Expand description
Parameters for setting a feature element
Fields§
§feature_code: Option<&'a str>Feature code (e.g., “NAME”, “ADDRESS”)
element_code: Option<&'a str>Element code (e.g., “FIRST_NAME”, “FULL_NAME”)
exec_order: Option<i64>§display_level: Option<i64>§display_delim: Option<&'a str>§derived: Option<&'a str>Implementations§
Source§impl<'a> SetFeatureElementParams<'a>
impl<'a> SetFeatureElementParams<'a>
Sourcepub fn new(feature_code: &'a str, element_code: &'a str) -> Self
pub fn new(feature_code: &'a str, element_code: &'a str) -> Self
Create new params using feature and element codes
§Example
use sz_configtool_lib::elements::SetFeatureElementParams;
let params = SetFeatureElementParams::new("NAME", "FIRST_NAME")
.with_display_level(1);Sourcepub fn with_exec_order(self, order: i64) -> Self
pub fn with_exec_order(self, order: i64) -> Self
Set execution order
Sourcepub fn with_display_level(self, level: i64) -> Self
pub fn with_display_level(self, level: i64) -> Self
Set display level
Sourcepub fn with_display_delim(self, delim: &'a str) -> Self
pub fn with_display_delim(self, delim: &'a str) -> Self
Set display delimiter
Sourcepub fn with_derived(self, derived: &'a str) -> Self
pub fn with_derived(self, derived: &'a str) -> Self
Set derived flag
Trait Implementations§
Source§impl<'a> Clone for SetFeatureElementParams<'a>
impl<'a> Clone for SetFeatureElementParams<'a>
Source§fn clone(&self) -> SetFeatureElementParams<'a>
fn clone(&self) -> SetFeatureElementParams<'a>
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<'a> Debug for SetFeatureElementParams<'a>
impl<'a> Debug for SetFeatureElementParams<'a>
Source§impl<'a> Default for SetFeatureElementParams<'a>
impl<'a> Default for SetFeatureElementParams<'a>
Source§fn default() -> SetFeatureElementParams<'a>
fn default() -> SetFeatureElementParams<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for SetFeatureElementParams<'a>
impl<'a> RefUnwindSafe for SetFeatureElementParams<'a>
impl<'a> Send for SetFeatureElementParams<'a>
impl<'a> Sync for SetFeatureElementParams<'a>
impl<'a> Unpin for SetFeatureElementParams<'a>
impl<'a> UnsafeUnpin for SetFeatureElementParams<'a>
impl<'a> UnwindSafe for SetFeatureElementParams<'a>
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