#[non_exhaustive]pub struct BackendServiceLogConfigLoggingHttpHeader {
pub header_name: Option<String>,
/* private fields */
}Available on crate features
backend-services or region-backend-services only.Expand description
Determines which HTTP headers will be logged to Stackdriver.
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.header_name: Option<String>The name of the header to be logged.
Implementations§
Source§impl BackendServiceLogConfigLoggingHttpHeader
impl BackendServiceLogConfigLoggingHttpHeader
Sourcepub fn set_header_name<T>(self, v: T) -> Self
pub fn set_header_name<T>(self, v: T) -> Self
Sets the value of header_name.
§Example
ⓘ
let x = BackendServiceLogConfigLoggingHttpHeader::new().set_header_name("example");Sourcepub fn set_or_clear_header_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_header_name<T>(self, v: Option<T>) -> Self
Sets or clears the value of header_name.
§Example
ⓘ
let x = BackendServiceLogConfigLoggingHttpHeader::new().set_or_clear_header_name(Some("example"));
let x = BackendServiceLogConfigLoggingHttpHeader::new().set_or_clear_header_name(None::<String>);Trait Implementations§
Source§impl Clone for BackendServiceLogConfigLoggingHttpHeader
impl Clone for BackendServiceLogConfigLoggingHttpHeader
Source§fn clone(&self) -> BackendServiceLogConfigLoggingHttpHeader
fn clone(&self) -> BackendServiceLogConfigLoggingHttpHeader
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 Default for BackendServiceLogConfigLoggingHttpHeader
impl Default for BackendServiceLogConfigLoggingHttpHeader
Source§fn default() -> BackendServiceLogConfigLoggingHttpHeader
fn default() -> BackendServiceLogConfigLoggingHttpHeader
Returns the “default value” for a type. Read more
Source§impl PartialEq for BackendServiceLogConfigLoggingHttpHeader
impl PartialEq for BackendServiceLogConfigLoggingHttpHeader
Source§fn eq(&self, other: &BackendServiceLogConfigLoggingHttpHeader) -> bool
fn eq(&self, other: &BackendServiceLogConfigLoggingHttpHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BackendServiceLogConfigLoggingHttpHeader
Auto Trait Implementations§
impl Freeze for BackendServiceLogConfigLoggingHttpHeader
impl RefUnwindSafe for BackendServiceLogConfigLoggingHttpHeader
impl Send for BackendServiceLogConfigLoggingHttpHeader
impl Sync for BackendServiceLogConfigLoggingHttpHeader
impl Unpin for BackendServiceLogConfigLoggingHttpHeader
impl UnsafeUnpin for BackendServiceLogConfigLoggingHttpHeader
impl UnwindSafe for BackendServiceLogConfigLoggingHttpHeader
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