pub struct PromotePostInput {
pub adset_id: String,
pub name: Option<String>,
pub extra: Option<Value>,
}Expand description
Input for promoting an existing post as a paid ad.
Promotion places the post as an ad inside an existing ad set; budget, schedule, and targeting are controlled by that ad set.
Fields§
§adset_id: StringThe ad set the promoted-post ad is created in.
name: Option<String>Name for the created ad (provider generates one if omitted).
extra: Option<Value>Provider-specific extra fields.
Trait Implementations§
Source§impl Clone for PromotePostInput
impl Clone for PromotePostInput
Source§fn clone(&self) -> PromotePostInput
fn clone(&self) -> PromotePostInput
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 PromotePostInput
impl Debug for PromotePostInput
Source§impl<'de> Deserialize<'de> for PromotePostInput
impl<'de> Deserialize<'de> for PromotePostInput
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 PromotePostInput
impl RefUnwindSafe for PromotePostInput
impl Send for PromotePostInput
impl Sync for PromotePostInput
impl Unpin for PromotePostInput
impl UnsafeUnpin for PromotePostInput
impl UnwindSafe for PromotePostInput
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