pub struct SocialPluginResponse {
pub ok: bool,
pub error: Option<String>,
pub draft_id: Option<String>,
pub scheduled_id: Option<String>,
pub scheduled_at: Option<String>,
pub state: Option<SocialPostState>,
pub handle: Option<String>,
pub provider: Option<String>,
pub capabilities: Option<Vec<String>>,
}Expand description
Response sent from a social media plugin to TA over stdout.
One JSON line per response. Always contains ok; on success contains
the operation result fields; on failure contains error.
Fields§
§ok: boolWhether the operation succeeded.
error: Option<String>Human-readable error message (only set when ok=false).
draft_id: Option<String>Native draft ID assigned by the platform (only for create_draft op).
scheduled_id: Option<String>Native scheduled post ID (only for create_scheduled op).
scheduled_at: Option<String>ISO-8601 timestamp when the post is scheduled to go out (create_scheduled op).
state: Option<SocialPostState>Current state of a draft or scheduled post (only for draft_status op).
handle: Option<String>Connected handle / username (only for health op, e.g., “@username”).
provider: Option<String>Provider name reported by the plugin (only for health op).
capabilities: Option<Vec<String>>Capabilities declared by the plugin (only for capabilities op).
Implementations§
Trait Implementations§
Source§impl Debug for SocialPluginResponse
impl Debug for SocialPluginResponse
Source§impl<'de> Deserialize<'de> for SocialPluginResponse
impl<'de> Deserialize<'de> for SocialPluginResponse
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 SocialPluginResponse
impl RefUnwindSafe for SocialPluginResponse
impl Send for SocialPluginResponse
impl Sync for SocialPluginResponse
impl Unpin for SocialPluginResponse
impl UnsafeUnpin for SocialPluginResponse
impl UnwindSafe for SocialPluginResponse
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