pub struct Campaign {
pub id: CampaignId,
pub provider: String,
pub name: String,
pub status: CampaignStatus,
pub objective: String,
pub budget: Option<Budget>,
pub created_at: DateTime<Utc>,
pub updated_at: Option<DateTime<Utc>>,
pub raw: Option<Value>,
}Expand description
A unified campaign representation across all providers.
Fields§
§id: CampaignIdUnique identifier.
provider: StringWhich provider this campaign belongs to.
name: StringCampaign name.
status: CampaignStatusCurrent status.
objective: StringCampaign objective (e.g. OUTCOME_LEADS).
budget: Option<Budget>Budget configuration, if set.
created_at: DateTime<Utc>When the campaign was created.
updated_at: Option<DateTime<Utc>>When the campaign was last updated.
raw: Option<Value>Original API response for debugging and raw access.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Campaign
impl<'de> Deserialize<'de> for Campaign
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 Formattable for Campaign
impl Formattable for Campaign
Auto Trait Implementations§
impl Freeze for Campaign
impl RefUnwindSafe for Campaign
impl Send for Campaign
impl Sync for Campaign
impl Unpin for Campaign
impl UnsafeUnpin for Campaign
impl UnwindSafe for Campaign
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