#[non_exhaustive]pub struct RequestMetadata {
pub headers: Option<Struct>,
/* private fields */
}Expand description
Metadata for an ad request.
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.headers: Option<Struct>The HTTP headers of the ad request.
Implementations§
Source§impl RequestMetadata
impl RequestMetadata
Sourcepub fn set_headers<T>(self, v: T) -> Self
pub fn set_headers<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_headers<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_headers<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for RequestMetadata
impl Clone for RequestMetadata
Source§fn clone(&self) -> RequestMetadata
fn clone(&self) -> RequestMetadata
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 RequestMetadata
impl Debug for RequestMetadata
Source§impl Default for RequestMetadata
impl Default for RequestMetadata
Source§fn default() -> RequestMetadata
fn default() -> RequestMetadata
Returns the “default value” for a type. Read more
Source§impl Message for RequestMetadata
impl Message for RequestMetadata
Source§impl PartialEq for RequestMetadata
impl PartialEq for RequestMetadata
Source§fn eq(&self, other: &RequestMetadata) -> bool
fn eq(&self, other: &RequestMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RequestMetadata
Auto Trait Implementations§
impl Freeze for RequestMetadata
impl RefUnwindSafe for RequestMetadata
impl Send for RequestMetadata
impl Sync for RequestMetadata
impl Unpin for RequestMetadata
impl UnsafeUnpin for RequestMetadata
impl UnwindSafe for RequestMetadata
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