pub struct Help { /* private fields */ }Expand description
The help information of option.
Implementations§
Source§impl Help
impl Help
pub fn new(hint: String, help: String) -> Self
pub fn with_hint(self, hint: impl Into<String>) -> Self
pub fn with_help(self, help: impl Into<String>) -> Self
pub fn hint(&self) -> &str
pub fn help(&self) -> &str
pub fn set_hint(&mut self, hint: impl Into<String>) -> &mut Self
pub fn set_help(&mut self, help: impl Into<String>) -> &mut Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Help
impl<'de> Deserialize<'de> for Help
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Help
impl RefUnwindSafe for Help
impl Send for Help
impl Sync for Help
impl Unpin for Help
impl UnsafeUnpin for Help
impl UnwindSafe for Help
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