pub struct AdvertisementSponsor {
pub url: String,
pub photo: Option<Photo>,
pub info: String,
}Expand description
Information about the sponsor of an advertisement
Fields§
§url: StringURL of the sponsor to be opened when the advertisement is clicked
photo: Option<Photo>Photo of the sponsor; may be null if must not be shown
info: StringAdditional optional information about the sponsor to be shown along with the advertisement
Trait Implementations§
Source§impl Clone for AdvertisementSponsor
impl Clone for AdvertisementSponsor
Source§fn clone(&self) -> AdvertisementSponsor
fn clone(&self) -> AdvertisementSponsor
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 AdvertisementSponsor
impl Debug for AdvertisementSponsor
Source§impl Default for AdvertisementSponsor
impl Default for AdvertisementSponsor
Source§fn default() -> AdvertisementSponsor
fn default() -> AdvertisementSponsor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AdvertisementSponsor
impl<'de> Deserialize<'de> for AdvertisementSponsor
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 AdvertisementSponsor
impl PartialEq for AdvertisementSponsor
Source§impl Serialize for AdvertisementSponsor
impl Serialize for AdvertisementSponsor
impl StructuralPartialEq for AdvertisementSponsor
Auto Trait Implementations§
impl Freeze for AdvertisementSponsor
impl RefUnwindSafe for AdvertisementSponsor
impl Send for AdvertisementSponsor
impl Sync for AdvertisementSponsor
impl Unpin for AdvertisementSponsor
impl UnsafeUnpin for AdvertisementSponsor
impl UnwindSafe for AdvertisementSponsor
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