pub enum UserAdSize {
Billboard,
Leaderboard,
Skyscraper,
MediumRectangle,
MobileLeaderboard,
}Expand description
Variants§
Billboard
970x250
Leaderboard
720x90
Skyscraper
160x600
MediumRectangle
300x250
MobileLeaderboard
320x50 - mobile only
Implementations§
Source§impl UserAdSize
impl UserAdSize
Sourcepub fn dimensions(&self) -> (u16, u16)
pub fn dimensions(&self) -> (u16, u16)
Get the dimensions of the size in CSS pixels.
Trait Implementations§
Source§impl Clone for UserAdSize
impl Clone for UserAdSize
Source§fn clone(&self) -> UserAdSize
fn clone(&self) -> UserAdSize
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserAdSize
impl Debug for UserAdSize
Source§impl Default for UserAdSize
impl Default for UserAdSize
Source§impl<'de> Deserialize<'de> for UserAdSize
impl<'de> Deserialize<'de> for UserAdSize
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 PartialEq for UserAdSize
impl PartialEq for UserAdSize
Source§impl Serialize for UserAdSize
impl Serialize for UserAdSize
impl Eq for UserAdSize
impl StructuralPartialEq for UserAdSize
Auto Trait Implementations§
impl Freeze for UserAdSize
impl RefUnwindSafe for UserAdSize
impl Send for UserAdSize
impl Sync for UserAdSize
impl Unpin for UserAdSize
impl UnwindSafe for UserAdSize
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.