pub struct MessageReference {
pub message_id: Id<MessageMarker>,
pub channel_id: Option<Id<ChannelMarker>>,
pub guild_id: Option<Id<GuildMarker>>,
pub type: MessageReferenceType,
}Fields§
§message_id: Id<MessageMarker>§channel_id: Option<Id<ChannelMarker>>§guild_id: Option<Id<GuildMarker>>§type: MessageReferenceTypeImplementations§
Source§impl MessageReference
impl MessageReference
Sourcepub fn builder() -> MessageReferenceBuilder
pub fn builder() -> MessageReferenceBuilder
Create an instance of MessageReference using the builder syntax
Trait Implementations§
Source§impl Clone for MessageReference
impl Clone for MessageReference
Source§fn clone(&self) -> MessageReference
fn clone(&self) -> MessageReference
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 MessageReference
impl Debug for MessageReference
Source§impl<'de> Deserialize<'de> for MessageReference
impl<'de> Deserialize<'de> for MessageReference
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
Auto Trait Implementations§
impl Freeze for MessageReference
impl RefUnwindSafe for MessageReference
impl Send for MessageReference
impl Sync for MessageReference
impl Unpin for MessageReference
impl UnsafeUnpin for MessageReference
impl UnwindSafe for MessageReference
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ResponseBody for Twhere
T: DeserializeOwned,
impl<T> ResponseBody for Twhere
T: DeserializeOwned,
Source§fn deserialize(bytes: Vec<u8>) -> Result<T, Box<ExecuteEndpointRequestError>>
fn deserialize(bytes: Vec<u8>) -> Result<T, Box<ExecuteEndpointRequestError>>
Deserialize, given the response body bytes. Read more