pub struct ValidatePostRequestPlatformsInner {
pub platform: Platform,
pub account_id: Option<String>,
pub custom_content: Option<String>,
pub platform_specific_data: Option<Value>,
pub custom_media: Option<Vec<MediaItem>>,
}Fields§
§platform: Platform§account_id: Option<String>Account to validate against. For twitter, resolves X Premium status to apply the 25000 character limit instead of 280.
custom_content: Option<String>§platform_specific_data: Option<Value>§custom_media: Option<Vec<MediaItem>>Implementations§
Source§impl ValidatePostRequestPlatformsInner
impl ValidatePostRequestPlatformsInner
pub fn new(platform: Platform) -> ValidatePostRequestPlatformsInner
Trait Implementations§
Source§impl Clone for ValidatePostRequestPlatformsInner
impl Clone for ValidatePostRequestPlatformsInner
Source§fn clone(&self) -> ValidatePostRequestPlatformsInner
fn clone(&self) -> ValidatePostRequestPlatformsInner
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 ValidatePostRequestPlatformsInner
impl Default for ValidatePostRequestPlatformsInner
Source§fn default() -> ValidatePostRequestPlatformsInner
fn default() -> ValidatePostRequestPlatformsInner
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ValidatePostRequestPlatformsInner
impl<'de> Deserialize<'de> for ValidatePostRequestPlatformsInner
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
impl StructuralPartialEq for ValidatePostRequestPlatformsInner
Auto Trait Implementations§
impl Freeze for ValidatePostRequestPlatformsInner
impl RefUnwindSafe for ValidatePostRequestPlatformsInner
impl Send for ValidatePostRequestPlatformsInner
impl Sync for ValidatePostRequestPlatformsInner
impl Unpin for ValidatePostRequestPlatformsInner
impl UnsafeUnpin for ValidatePostRequestPlatformsInner
impl UnwindSafe for ValidatePostRequestPlatformsInner
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