pub struct AdScript {
pub script_id: ScriptId,
pub provenance: AdProvenance,
}Expand description
An ad script. Note: when the script is a transitive ad script, we only fill in the immediate ancestor script in the provenance’s adScriptAncestry field (as its first entry), rather than filling in the full ancestry. This saves work for the backend, and the frontend can reconstruct the full ancestry if necessary.
Fields§
§script_id: ScriptIdThe script ID.
provenance: AdProvenanceThe ad provenance.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AdScript
impl<'de> Deserialize<'de> for AdScript
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
impl StructuralPartialEq for AdScript
Auto Trait Implementations§
impl Forget for AdScript
impl Freeze for AdScript
impl RefUnwindSafe for AdScript
impl Send for AdScript
impl Sync for AdScript
impl Unpin for AdScript
impl UnsafeUnpin for AdScript
impl UnwindSafe for AdScript
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