pub struct Button<'a> {
pub text: Cow<'a, str>,
pub action: Option<TransitionAction<'a>>,
}Fields§
§text: Cow<'a, str>§action: Option<TransitionAction<'a>>Trait Implementations§
Source§impl<'a> MessageRead<'a> for Button<'a>
impl<'a> MessageRead<'a> for Button<'a>
Source§fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
Constructs an instance of
Self by reading from the given bytes
via the given reader. Read moreSource§impl<'a> MessageWrite for Button<'a>
impl<'a> MessageWrite for Button<'a>
impl<'a> StructuralPartialEq for Button<'a>
Auto Trait Implementations§
impl<'a> Freeze for Button<'a>
impl<'a> RefUnwindSafe for Button<'a>
impl<'a> Send for Button<'a>
impl<'a> Sync for Button<'a>
impl<'a> Unpin for Button<'a>
impl<'a> UnwindSafe for Button<'a>
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