pub struct Mini { /* private fields */ }Expand description
Markup with named arguments; see mini.
Implementations§
Source§impl Mini
impl Mini
Sourcepub fn arg(self, name: impl Into<String>, text: impl Into<String>) -> Self
pub fn arg(self, name: impl Into<String>, text: impl Into<String>) -> Self
<name> shows text exactly as written: it is never parsed, so
a player name cannot add tags.
Sourcepub fn arg_component(
self,
name: impl Into<String>,
component: impl Into<Value>,
) -> Self
pub fn arg_component( self, name: impl Into<String>, component: impl Into<Value>, ) -> Self
<name> shows a component with its own formatting, such as a
Component, a legacy object or a serde_json::Value.
Trait Implementations§
impl StructuralPartialEq for Mini
Auto Trait Implementations§
impl Forget for Mini
impl Freeze for Mini
impl Move for Mini
impl RefUnwindSafe for Mini
impl Send for Mini
impl Sync for Mini
impl Unpin for Mini
impl UnsafeUnpin for Mini
impl UnwindSafe for Mini
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