pub enum Verbosity {
Low,
Medium,
High,
}Expand description
Provider-specific hint for verbosity intensity/budget.
Variants§
Implementations§
Source§impl Verbosity
impl Verbosity
Sourcepub fn variant_name(&self) -> &'static str
pub fn variant_name(&self) -> &'static str
Returns the lowercase variant name; Budget(_) returns "budget".
Sourcepub fn as_keyword(&self) -> Option<&'static str>
pub fn as_keyword(&self) -> Option<&'static str>
Returns the verbosity keyword.
Sourcepub fn from_keyword(name: &str) -> Option<Self>
pub fn from_keyword(name: &str) -> Option<Self>
Parses a keyword into a non-Budget variant.
Sourcepub fn from_model_name(model_name: &str) -> (Option<Self>, &str)
pub fn from_model_name(model_name: &str) -> (Option<Self>, &str)
If model_name ends with -<effort>, returns the parsed effort and the trimmed name.
Only keyword variants are produced; Budget is never created here.
Returns (effort, trimmed_model_name).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Verbosity
impl<'de> Deserialize<'de> for Verbosity
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 Verbosity
impl RefUnwindSafe for Verbosity
impl Send for Verbosity
impl Sync for Verbosity
impl Unpin for Verbosity
impl UnsafeUnpin for Verbosity
impl UnwindSafe for Verbosity
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