Struct aws_sdk_cloudfront::types::OriginCustomHeader
source · #[non_exhaustive]pub struct OriginCustomHeader {
pub header_name: String,
pub header_value: String,
}
Expand description
A complex type that contains HeaderName
and HeaderValue
elements, if any, for this distribution.
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: String
The name of a header that you want CloudFront to send to your origin. For more information, see Adding Custom Headers to Origin Requests in the Amazon CloudFront Developer Guide.
header_value: String
The value for the header that you specified in the HeaderName
field.
Implementations§
source§impl OriginCustomHeader
impl OriginCustomHeader
sourcepub fn header_name(&self) -> &str
pub fn header_name(&self) -> &str
The name of a header that you want CloudFront to send to your origin. For more information, see Adding Custom Headers to Origin Requests in the Amazon CloudFront Developer Guide.
sourcepub fn header_value(&self) -> &str
pub fn header_value(&self) -> &str
The value for the header that you specified in the HeaderName
field.
source§impl OriginCustomHeader
impl OriginCustomHeader
sourcepub fn builder() -> OriginCustomHeaderBuilder
pub fn builder() -> OriginCustomHeaderBuilder
Creates a new builder-style object to manufacture OriginCustomHeader
.
Trait Implementations§
source§impl Clone for OriginCustomHeader
impl Clone for OriginCustomHeader
source§fn clone(&self) -> OriginCustomHeader
fn clone(&self) -> OriginCustomHeader
Returns a copy 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 OriginCustomHeader
impl Debug for OriginCustomHeader
source§impl PartialEq for OriginCustomHeader
impl PartialEq for OriginCustomHeader
source§fn eq(&self, other: &OriginCustomHeader) -> bool
fn eq(&self, other: &OriginCustomHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OriginCustomHeader
Auto Trait Implementations§
impl RefUnwindSafe for OriginCustomHeader
impl Send for OriginCustomHeader
impl Sync for OriginCustomHeader
impl Unpin for OriginCustomHeader
impl UnwindSafe for OriginCustomHeader
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.