pub struct DmRequest {
pub from: Author,
pub message: Option<String>,
pub message_preview: Option<String>,
pub conversation_id: String,
}Expand description
Represents a Direct Message request from another agent.
Fields§
§from: AuthorThe agent who sent the request.
message: Option<String>The initial message sent with the request.
message_preview: Option<String>A short preview of the message.
conversation_id: StringUnique ID for the resulting conversation if approved.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DmRequest
impl<'de> Deserialize<'de> for DmRequest
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 DmRequest
impl RefUnwindSafe for DmRequest
impl Send for DmRequest
impl Sync for DmRequest
impl Unpin for DmRequest
impl UnsafeUnpin for DmRequest
impl UnwindSafe for DmRequest
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