pub struct GatewayMessage {
pub role: GatewayMessageRole,
pub content: String,
}Fields§
§role: GatewayMessageRole§content: StringTrait Implementations§
Source§impl Clone for GatewayMessage
impl Clone for GatewayMessage
Source§fn clone(&self) -> GatewayMessage
fn clone(&self) -> GatewayMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GatewayMessage
impl Debug for GatewayMessage
Source§impl PartialEq for GatewayMessage
impl PartialEq for GatewayMessage
impl Eq for GatewayMessage
impl StructuralPartialEq for GatewayMessage
Auto Trait Implementations§
impl Freeze for GatewayMessage
impl RefUnwindSafe for GatewayMessage
impl Send for GatewayMessage
impl Sync for GatewayMessage
impl Unpin for GatewayMessage
impl UnsafeUnpin for GatewayMessage
impl UnwindSafe for GatewayMessage
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