pub struct CampaignInput {
pub account: Option<String>,
pub budget: Option<i32>,
pub name: Option<String>,
pub objective: Option<String>,
pub platform: Option<String>,
pub spend: Option<i32>,
pub status: Option<String>,
}Fields§
§account: Option<String>Account is the provider ad-account this campaign runs on (Meta act_
budget: Option<i32>Budget is the campaign budget in MINOR units (cents). Negative values clamp to 0.
name: Option<String>Name is the campaign’s display label. Required; trimmed and bounded to 1024 bytes.
objective: Option<String>Objective is the campaign goal as the provider names it. Optional, bounded to 1024 bytes.
platform: Option<String>Platform is the ad network: meta, google, tiktok or x. Empty defaults to meta.
spend: Option<i32>Spend is the amount spent so far in MINOR units (cents). Negative values clamp to 0.
status: Option<String>Status is the lifecycle state: draft, active, paused or completed. Empty defaults to draft.
Implementations§
Source§impl CampaignInput
impl CampaignInput
pub fn new() -> CampaignInput
Trait Implementations§
Source§impl Clone for CampaignInput
impl Clone for CampaignInput
Source§fn clone(&self) -> CampaignInput
fn clone(&self) -> CampaignInput
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 CampaignInput
impl Debug for CampaignInput
Source§impl Default for CampaignInput
impl Default for CampaignInput
Source§fn default() -> CampaignInput
fn default() -> CampaignInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CampaignInput
impl<'de> Deserialize<'de> for CampaignInput
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 CampaignInput
impl PartialEq for CampaignInput
Source§impl Serialize for CampaignInput
impl Serialize for CampaignInput
impl StructuralPartialEq for CampaignInput
Auto Trait Implementations§
impl Freeze for CampaignInput
impl RefUnwindSafe for CampaignInput
impl Send for CampaignInput
impl Sync for CampaignInput
impl Unpin for CampaignInput
impl UnsafeUnpin for CampaignInput
impl UnwindSafe for CampaignInput
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