pub struct StringArgumentBuilder { /* private fields */ }Implementations§
Source§impl StringArgumentBuilder
impl StringArgumentBuilder
pub fn name_i18n(self, lang: impl Into<String>, name: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
pub fn description_i18n( self, lang: impl Into<String>, description: impl Into<String>, ) -> Self
pub fn min_length(self, length: u16) -> Self
pub fn max_length(self, length: u16) -> Self
pub fn optional(self) -> Self
Trait Implementations§
Source§impl From<StringArgumentBuilder> for ArgumentMeta
impl From<StringArgumentBuilder> for ArgumentMeta
Source§fn from(value: StringArgumentBuilder) -> Self
fn from(value: StringArgumentBuilder) -> Self
Converts to this type from the input type.
Source§impl From<StringArgumentBuilder> for StringArgument
impl From<StringArgumentBuilder> for StringArgument
Source§fn from(value: StringArgumentBuilder) -> Self
fn from(value: StringArgumentBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StringArgumentBuilder
impl RefUnwindSafe for StringArgumentBuilder
impl Send for StringArgumentBuilder
impl Sync for StringArgumentBuilder
impl Unpin for StringArgumentBuilder
impl UnsafeUnpin for StringArgumentBuilder
impl UnwindSafe for StringArgumentBuilder
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