pub struct Argument { /* private fields */ }Implementations§
Source§impl Argument
impl Argument
pub fn new( argument_type: u8, argument_name: String, default_value: Option<u32>, db_options: Vec<String>, db_references: Vec<u32>, ) -> Self
Sourcepub fn argument_type(&self) -> &ArgumentType
pub fn argument_type(&self) -> &ArgumentType
The type of argument that can be passed
Sourcepub fn argument_name(&self) -> &str
pub fn argument_name(&self) -> &str
The name of the argument variable
Sourcepub fn default_value(&self) -> Option<u32>
pub fn default_value(&self) -> Option<u32>
The default value for this argument. This is only set for number arguments and is None otherwise.
Sourcepub fn db_options(&self) -> &Vec<String>
pub fn db_options(&self) -> &Vec<String>
Extra options for ArgumentType::DBRef arguments
Sourcepub fn db_references(&self) -> &Vec<u32>
pub fn db_references(&self) -> &Vec<u32>
The database the argument references
Trait Implementations§
impl StructuralPartialEq for Argument
Auto Trait Implementations§
impl Freeze for Argument
impl RefUnwindSafe for Argument
impl Send for Argument
impl Sync for Argument
impl Unpin for Argument
impl UnwindSafe for Argument
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