pub struct PublishPostInput {
pub platform: String,
pub message: Option<String>,
pub link: Option<String>,
pub image_url: Option<String>,
pub video_url: Option<String>,
pub extra: Option<Value>,
}Expand description
Input for publishing a new post.
Fields§
§platform: StringTarget social platform.
message: Option<String>Post message or caption.
link: Option<String>Destination link URL.
image_url: Option<String>Image URL to attach to the post.
video_url: Option<String>Video URL to attach to the post.
extra: Option<Value>Provider-specific extra fields.
Trait Implementations§
Source§impl Clone for PublishPostInput
impl Clone for PublishPostInput
Source§fn clone(&self) -> PublishPostInput
fn clone(&self) -> PublishPostInput
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 Debug for PublishPostInput
impl Debug for PublishPostInput
Source§impl Default for PublishPostInput
impl Default for PublishPostInput
Source§fn default() -> PublishPostInput
fn default() -> PublishPostInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PublishPostInput
impl<'de> Deserialize<'de> for PublishPostInput
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 PublishPostInput
impl RefUnwindSafe for PublishPostInput
impl Send for PublishPostInput
impl Sync for PublishPostInput
impl Unpin for PublishPostInput
impl UnsafeUnpin for PublishPostInput
impl UnwindSafe for PublishPostInput
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