pub struct Creative {
pub id: CreativeId,
pub provider: String,
pub name: String,
pub body: Option<String>,
pub image_url: Option<String>,
pub video_url: Option<String>,
pub link_url: Option<String>,
pub call_to_action: Option<String>,
pub created_at: DateTime<Utc>,
pub raw: Option<Value>,
}Expand description
A unified creative representation across all providers.
Fields§
§id: CreativeIdUnique identifier.
provider: StringWhich provider this creative belongs to.
name: StringCreative name.
body: Option<String>Ad body text.
image_url: Option<String>URL of the image asset.
video_url: Option<String>URL of the video asset.
link_url: Option<String>Destination link URL.
call_to_action: Option<String>Call-to-action label (e.g. LEARN_MORE).
created_at: DateTime<Utc>When the creative was created.
raw: Option<Value>Original API response for debugging and raw access.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Creative
impl<'de> Deserialize<'de> for Creative
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 Creative
impl Formattable for Creative
Auto Trait Implementations§
impl Freeze for Creative
impl RefUnwindSafe for Creative
impl Send for Creative
impl Sync for Creative
impl Unpin for Creative
impl UnsafeUnpin for Creative
impl UnwindSafe for Creative
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