pub struct CreateInboxConversationRequest {
pub account_id: String,
pub participant_id: Option<String>,
pub participant_username: Option<String>,
pub message: Option<String>,
pub skip_dm_check: Option<bool>,
}Fields§
§account_id: StringThe social account ID to send from
participant_id: Option<String>Twitter numeric user ID of the recipient. Provide either this or participantUsername.
participant_username: Option<String>Twitter username (with or without @) of the recipient. Resolved to a user ID via lookup. Provide either this or participantId.
message: Option<String>Text content of the message. At least one of message or attachment is required.
skip_dm_check: Option<bool>Skip the receives_your_dm eligibility check before sending. Use if you have already verified the recipient accepts DMs.
Implementations§
Source§impl CreateInboxConversationRequest
impl CreateInboxConversationRequest
pub fn new(account_id: String) -> CreateInboxConversationRequest
Trait Implementations§
Source§impl Clone for CreateInboxConversationRequest
impl Clone for CreateInboxConversationRequest
Source§fn clone(&self) -> CreateInboxConversationRequest
fn clone(&self) -> CreateInboxConversationRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for CreateInboxConversationRequest
impl Default for CreateInboxConversationRequest
Source§fn default() -> CreateInboxConversationRequest
fn default() -> CreateInboxConversationRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateInboxConversationRequest
impl<'de> Deserialize<'de> for CreateInboxConversationRequest
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 PartialEq for CreateInboxConversationRequest
impl PartialEq for CreateInboxConversationRequest
Source§fn eq(&self, other: &CreateInboxConversationRequest) -> bool
fn eq(&self, other: &CreateInboxConversationRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateInboxConversationRequest
Auto Trait Implementations§
impl Freeze for CreateInboxConversationRequest
impl RefUnwindSafe for CreateInboxConversationRequest
impl Send for CreateInboxConversationRequest
impl Sync for CreateInboxConversationRequest
impl Unpin for CreateInboxConversationRequest
impl UnsafeUnpin for CreateInboxConversationRequest
impl UnwindSafe for CreateInboxConversationRequest
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