Struct primitives::targeting::input::Global
source · pub struct Global {
pub ad_slot_id: IPFS,
pub ad_slot_type: String,
pub publisher_id: Address,
pub country: Option<String>,
pub event_type: EventType,
pub seconds_since_epoch: DateTime<Utc>,
pub user_agent_os: Option<String>,
pub user_agent_browser_family: Option<String>,
}
Expand description
Global scope, accessible everywhere
Fields
ad_slot_id: IPFS
We still use String
, because the Event
s have an Option
al AdSlot
value.
ad_slot_type: String
publisher_id: Address
country: Option<String>
event_type: EventType
seconds_since_epoch: DateTime<Utc>
user_agent_os: Option<String>
user_agent_browser_family: Option<String>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Global
impl<'de> Deserialize<'de> for Global
sourcefn 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 Eq for Global
impl StructuralEq for Global
impl StructuralPartialEq for Global
Auto Trait Implementations
impl RefUnwindSafe for Global
impl Send for Global
impl Sync for Global
impl Unpin for Global
impl UnwindSafe for Global
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more