pub struct SlackBlockChoiceItemInit<T: Into<SlackBlockText>> {
pub text: T,
pub value: String,
}
Fields§
§text: T
§value: String
Trait Implementations§
Source§impl<T: Into<SlackBlockText>> From<SlackBlockChoiceItemInit<T>> for SlackBlockChoiceItem<T>
impl<T: Into<SlackBlockText>> From<SlackBlockChoiceItemInit<T>> for SlackBlockChoiceItem<T>
Source§fn from(value: SlackBlockChoiceItemInit<T>) -> Self
fn from(value: SlackBlockChoiceItemInit<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for SlackBlockChoiceItemInit<T>where
T: Freeze,
impl<T> RefUnwindSafe for SlackBlockChoiceItemInit<T>where
T: RefUnwindSafe,
impl<T> Send for SlackBlockChoiceItemInit<T>where
T: Send,
impl<T> Sync for SlackBlockChoiceItemInit<T>where
T: Sync,
impl<T> Unpin for SlackBlockChoiceItemInit<T>where
T: Unpin,
impl<T> UnwindSafe for SlackBlockChoiceItemInit<T>where
T: UnwindSafe,
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