#[non_exhaustive]pub struct HtmlAdResource {
pub html_source: String,
/* private fields */
}Expand description
Metadata for an HTML ad resource.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.html_source: StringThe HTML to display for the ad resource.
Implementations§
Source§impl HtmlAdResource
impl HtmlAdResource
Sourcepub fn set_html_source<T: Into<String>>(self, v: T) -> Self
pub fn set_html_source<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for HtmlAdResource
impl Clone for HtmlAdResource
Source§fn clone(&self) -> HtmlAdResource
fn clone(&self) -> HtmlAdResource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HtmlAdResource
impl Debug for HtmlAdResource
Source§impl Default for HtmlAdResource
impl Default for HtmlAdResource
Source§fn default() -> HtmlAdResource
fn default() -> HtmlAdResource
Returns the “default value” for a type. Read more
Source§impl Message for HtmlAdResource
impl Message for HtmlAdResource
Source§impl PartialEq for HtmlAdResource
impl PartialEq for HtmlAdResource
Source§fn eq(&self, other: &HtmlAdResource) -> bool
fn eq(&self, other: &HtmlAdResource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HtmlAdResource
Auto Trait Implementations§
impl Freeze for HtmlAdResource
impl RefUnwindSafe for HtmlAdResource
impl Send for HtmlAdResource
impl Sync for HtmlAdResource
impl Unpin for HtmlAdResource
impl UnsafeUnpin for HtmlAdResource
impl UnwindSafe for HtmlAdResource
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