pub struct Article { /* private fields */ }
Implementations§
Source§impl Article
impl Article
pub fn new<S: Into<String>, M: Into<InputMessage>>( title: S, input_message: M, ) -> Self
Sourcepub fn id(self, result_id: impl Into<String>) -> Self
pub fn id(self, result_id: impl Into<String>) -> Self
Unique identifier of the result.
By default, a random string will be used.
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Short description of the result.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Article
impl RefUnwindSafe for Article
impl Send for Article
impl Sync for Article
impl Unpin for Article
impl UnwindSafe for Article
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