pub struct Ad {
pub id: AdId,
pub provider: String,
pub adset_id: AdSetId,
pub name: String,
pub status: AdStatus,
pub creative_id: Option<CreativeId>,
pub created_at: DateTime<Utc>,
pub updated_at: Option<DateTime<Utc>>,
pub raw: Option<Value>,
}Expand description
A unified ad representation across all providers.
Fields§
§id: AdIdUnique identifier.
provider: StringWhich provider this ad belongs to.
adset_id: AdSetIdThe parent ad set identifier.
name: StringAd name.
status: AdStatusCurrent status.
creative_id: Option<CreativeId>Creative associated with this ad, if any.
created_at: DateTime<Utc>When the ad was created.
updated_at: Option<DateTime<Utc>>When the ad was last updated.
raw: Option<Value>Original API response for debugging and raw access.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ad
impl<'de> Deserialize<'de> for Ad
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 Ad
impl Formattable for Ad
Auto Trait Implementations§
impl Freeze for Ad
impl RefUnwindSafe for Ad
impl Send for Ad
impl Sync for Ad
impl Unpin for Ad
impl UnsafeUnpin for Ad
impl UnwindSafe for Ad
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