Struct clmm_common::command::Parse
source · [−]pub struct Parse<'a> {
pub text: Text<'a>,
}Fields
text: Text<'a>Implementations
sourceimpl Parse<'_>
impl Parse<'_>
pub fn new(title: &str, require: bool) -> Parse<'_>
pub fn new_with_default<'a>(title: &'a str, message: &'a str) -> Parse<'a>
pub fn to_pubkey(self) -> Result<Pubkey, Box<dyn Error>>
pub fn to_u128(self) -> Result<u128, Box<dyn Error>>
pub fn to_u64(self) -> Result<u64, Box<dyn Error>>
pub fn to_u16(self) -> Result<u16, Box<dyn Error>>
pub fn to_f64(self) -> Result<f64, Box<dyn Error>>
pub fn to_file(self) -> Result<String, Box<dyn Error>>
pub fn to_string(self) -> Result<String, Box<dyn Error>>
pub fn confirm() -> Result<(), Box<dyn Error>>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Parse<'a>
impl<'a> !Send for Parse<'a>
impl<'a> !Sync for Parse<'a>
impl<'a> Unpin for Parse<'a>
impl<'a> !UnwindSafe for Parse<'a>
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more