pub struct UriOption {
pub name: String,
pub description: String,
pub kind: OptionKind,
pub required: bool,
pub default_value: Option<String>,
pub aliases: Vec<String>,
pub deprecated: Option<String>,
pub secret: bool,
}Fields§
§name: String§description: String§kind: OptionKind§required: bool§default_value: Option<String>§aliases: Vec<String>§deprecated: Option<String>§secret: boolImplementations§
Source§impl UriOption
impl UriOption
pub fn new(name: &str, description: &str, kind: OptionKind) -> Self
pub fn required(self) -> Self
pub fn with_default(self, value: &str) -> Self
pub fn with_alias(self, alias: &str) -> Self
pub fn deprecated(self, reason: &str) -> Self
pub fn secret(self) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UriOption
impl<'de> Deserialize<'de> for UriOption
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
impl Eq for UriOption
impl StructuralPartialEq for UriOption
Auto Trait Implementations§
impl Freeze for UriOption
impl RefUnwindSafe for UriOption
impl Send for UriOption
impl Sync for UriOption
impl Unpin for UriOption
impl UnsafeUnpin for UriOption
impl UnwindSafe for UriOption
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