pub struct SocialPostWrite {
pub channel: Option<String>,
pub content: Option<String>,
pub media: Option<Vec<String>>,
pub schedule_at: Option<i32>,
pub status: Option<String>,
}Fields§
§channel: Option<String>Channel is the network to publish to: x, facebook, instagram, linkedin, tiktok, youtube or threads. Omitted means x. Example: "x"
content: Option<String>Content is the post’s text. Required on every update, and bounded at 8192 characters. Example: "Shipping today."
media: Option<Vec<String>>Media is the post’s attached media as URLs, at most 10. Omitting it CLEARS any stored media: this is a replacement, not a merge.
schedule_at: Option<i32>ScheduleAt is when to publish, as a unix timestamp in SECONDS. 0 means unscheduled. Moving it into the past here does NOT publish the post — that is the scheduler’s to notice, or the publish operation’s.
status: Option<String>Status is the post’s lifecycle state: draft, scheduled, published or failed. Omitting it RESETS the post to draft.
Implementations§
Source§impl SocialPostWrite
impl SocialPostWrite
pub fn new() -> SocialPostWrite
Trait Implementations§
Source§impl Clone for SocialPostWrite
impl Clone for SocialPostWrite
Source§fn clone(&self) -> SocialPostWrite
fn clone(&self) -> SocialPostWrite
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 SocialPostWrite
impl Debug for SocialPostWrite
Source§impl Default for SocialPostWrite
impl Default for SocialPostWrite
Source§fn default() -> SocialPostWrite
fn default() -> SocialPostWrite
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SocialPostWrite
impl<'de> Deserialize<'de> for SocialPostWrite
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 SocialPostWrite
impl PartialEq for SocialPostWrite
Source§impl Serialize for SocialPostWrite
impl Serialize for SocialPostWrite
impl StructuralPartialEq for SocialPostWrite
Auto Trait Implementations§
impl Freeze for SocialPostWrite
impl RefUnwindSafe for SocialPostWrite
impl Send for SocialPostWrite
impl Sync for SocialPostWrite
impl Unpin for SocialPostWrite
impl UnsafeUnpin for SocialPostWrite
impl UnwindSafe for SocialPostWrite
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