pub struct BetaParams {
pub message: Option<String>,
pub name: Option<String>,
pub obj_type: Option<String>,
pub addendum: Option<String>,
}Expand description
Parameters for configuring beta warnings.
Fields§
§message: Option<String>Override the default beta message.
name: Option<String>The name of the beta object.
obj_type: Option<String>The object type being marked as beta (e.g., “function”, “class”, “method”).
addendum: Option<String>Additional text appended directly to the final message.
Implementations§
Source§impl BetaParams
impl BetaParams
Sourcepub fn with_message(self, message: impl Into<String>) -> Self
pub fn with_message(self, message: impl Into<String>) -> Self
Set the custom message.
Sourcepub fn with_obj_type(self, obj_type: impl Into<String>) -> Self
pub fn with_obj_type(self, obj_type: impl Into<String>) -> Self
Set the object type.
Sourcepub fn with_addendum(self, addendum: impl Into<String>) -> Self
pub fn with_addendum(self, addendum: impl Into<String>) -> Self
Set the addendum.
Trait Implementations§
Source§impl Clone for BetaParams
impl Clone for BetaParams
Source§fn clone(&self) -> BetaParams
fn clone(&self) -> BetaParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BetaParams
impl Debug for BetaParams
Source§impl Default for BetaParams
impl Default for BetaParams
Source§fn default() -> BetaParams
fn default() -> BetaParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BetaParams
impl RefUnwindSafe for BetaParams
impl Send for BetaParams
impl Sync for BetaParams
impl Unpin for BetaParams
impl UnwindSafe for BetaParams
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