[][src]Struct extcap::IfArg

pub struct IfArg<'a> { /* fields omitted */ }

Argument representation

Methods

impl<'a> IfArg<'a>[src]

pub fn new_integer(name: &'a str) -> Self[src]

Creates a new instance of IfArg with 'IfArgType::Integer' type using a string name

pub fn new_unsigned(name: &'a str) -> Self[src]

Creates a new instance of IfArg with 'IfArgType::Unsigned' type using a string name

pub fn new_long(name: &'a str) -> Self[src]

Creates a new instance of IfArg with 'IfArgType::Long' type using a string name

pub fn new_double(name: &'a str) -> Self[src]

Creates a new instance of IfArg with 'IfArgType::Double' type using a string name

pub fn new_string(name: &'a str) -> Self[src]

Creates a new instance of IfArg with 'IfArgType::String' type using a string name

pub fn new_password(name: &'a str) -> Self[src]

Creates a new instance of IfArg with 'IfArgType::Password' type using a string name

pub fn new_boolean(name: &'a str) -> Self[src]

Creates a new instance of IfArg with 'IfArgType::Boolean' type using a string name

pub fn new_boolflag(name: &'a str) -> Self[src]

Creates a new instance of IfArg with 'IfArgType::Boolflag' type using a string name

pub fn new_fileselect(name: &'a str) -> Self[src]

Creates a new instance of IfArg with 'IfArgType::Fileselect' type using a string name

pub fn new_selector(name: &'a str) -> Self[src]

Creates a new instance of IfArg with 'IfArgType::Selector' type using a string name

pub fn new_radio(name: &'a str) -> Self[src]

Creates a new instance of IfArg with 'IfArgType::Radio' type using a string name

pub fn new_multicheck(name: &'a str) -> Self[src]

Creates a new instance of IfArg with 'IfArgType::Multicheck' type using a string name

pub fn new_timestamp(name: &'a str) -> Self[src]

Creates a new instance of IfArg with 'IfArgType::Timestamp' type using a string name

pub fn display(self, display: &'a str) -> Self[src]

Sets the display string

pub fn default<T: ToString>(self, default: &T) -> Self[src]

Sets the default value

pub fn range<T: ToString>(self, range: &T) -> Self[src]

Sets the range string

pub fn validation<T: ToString>(self, validation: &T) -> Self[src]

Sets the validation regular expression string

pub fn mustexist(self, mustexist: bool) -> Self[src]

Sets the mustexist flag for Fileselect

pub fn reload(self, reload: bool) -> Self[src]

Sets the reload flag

pub fn placeholder(self, placeholder: &str) -> Self[src]

Sets the placeholder string

pub fn tooltip(self, tooltip: &str) -> Self[src]

Sets the tooltip string

pub fn group(self, group: &str) -> Self[src]

Sets the group

pub fn add_val(&mut self, val: IfArgVal)[src]

Adds a value

Trait Implementations

impl<'a> Default for IfArg<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for IfArg<'a>

impl<'a> Send for IfArg<'a>

impl<'a> Sync for IfArg<'a>

impl<'a> Unpin for IfArg<'a>

impl<'a> UnwindSafe for IfArg<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.