pub struct CampaignWrite {
pub audience: Option<String>,
pub budget: Option<i32>,
pub channels: Option<Vec<ChannelSpec>>,
pub content: Option<Vec<String>>,
pub name: Option<String>,
pub schedule_at: Option<i32>,
}Fields§
§audience: Option<String>Audience is the segment or audience selector this campaign targets.
budget: Option<i32>Budget is the campaign’s total budget in CENTS. Negative reads as 0.
channels: Option<Vec<ChannelSpec>>Channels are the fan-out targets, at most one per kind (paid, organic, email) and at most 12. A channel’s status and provider id are server-owned: whatever the caller sends for them is replaced with "pending".
content: Option<Vec<String>>Content is the ordered creative set. Content[0] is the active creative and the rest are A/B variants; at most 32, empty entries dropped.
name: Option<String>Name is the campaign’s display name. Required; trimmed and capped at 2048 characters.
schedule_at: Option<i32>ScheduleAt is when the campaign should run, in unix seconds. Negative reads as 0 (immediately).
Implementations§
Source§impl CampaignWrite
impl CampaignWrite
pub fn new() -> CampaignWrite
Trait Implementations§
Source§impl Clone for CampaignWrite
impl Clone for CampaignWrite
Source§fn clone(&self) -> CampaignWrite
fn clone(&self) -> CampaignWrite
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 CampaignWrite
impl Debug for CampaignWrite
Source§impl Default for CampaignWrite
impl Default for CampaignWrite
Source§fn default() -> CampaignWrite
fn default() -> CampaignWrite
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CampaignWrite
impl<'de> Deserialize<'de> for CampaignWrite
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 CampaignWrite
impl PartialEq for CampaignWrite
Source§impl Serialize for CampaignWrite
impl Serialize for CampaignWrite
impl StructuralPartialEq for CampaignWrite
Auto Trait Implementations§
impl Freeze for CampaignWrite
impl RefUnwindSafe for CampaignWrite
impl Send for CampaignWrite
impl Sync for CampaignWrite
impl Unpin for CampaignWrite
impl UnsafeUnpin for CampaignWrite
impl UnwindSafe for CampaignWrite
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