pub struct Banner {
pub image_url: String,
pub action: Option<TransitionAction>,
pub id: u32,
}
Fields§
§image_url: String
§action: Option<TransitionAction>
§id: u32
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Banner
impl<'de> Deserialize<'de> for Banner
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> MessageRead<'a> for Banner
impl<'a> MessageRead<'a> for Banner
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 MessageWrite for Banner
impl MessageWrite for Banner
impl StructuralPartialEq for Banner
Auto Trait Implementations§
impl Freeze for Banner
impl RefUnwindSafe for Banner
impl Send for Banner
impl Sync for Banner
impl Unpin for Banner
impl UnwindSafe for Banner
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