pub struct Cta {
pub label: String,
pub tco_url: String,
pub url: String,
}Expand description
A “call to action” added as a button to a direct message.
Buttons allow you to attach additional URLs as “calls to action” for the recipient of the
message. For more information, see the cta_button function on DraftMessage.
Fields§
§label: StringThe label shown to the user for the CTA.
tco_url: StringThe t.co URL that the user should navigate to if they click this CTA.
url: StringThe URL given for the CTA, that could be displayed if needed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cta
impl<'de> Deserialize<'de> for Cta
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 Cta
impl RefUnwindSafe for Cta
impl Send for Cta
impl Sync for Cta
impl Unpin for Cta
impl UnwindSafe for Cta
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