pub struct CorsIssueDetails {
pub cors_error_status: CorsErrorStatus,
pub is_warning: bool,
pub request: AffectedRequest,
pub location: Option<SourceCodeLocation>,
pub initiator_origin: Option<String>,
pub resource_ip_address_space: Option<IpAddressSpace>,
pub client_security_state: Option<ClientSecurityState>,
}
Expand description
Details for a CORS related issue, e.g. a warning or error related to CORS RFC1918 enforcement. CorsIssueDetails
Fields§
§cors_error_status: CorsErrorStatus
§is_warning: bool
§request: AffectedRequest
§location: Option<SourceCodeLocation>
§initiator_origin: Option<String>
§resource_ip_address_space: Option<IpAddressSpace>
§client_security_state: Option<ClientSecurityState>
Implementations§
Source§impl CorsIssueDetails
impl CorsIssueDetails
pub fn new( cors_error_status: impl Into<CorsErrorStatus>, is_warning: impl Into<bool>, request: impl Into<AffectedRequest>, ) -> CorsIssueDetails
Source§impl CorsIssueDetails
impl CorsIssueDetails
pub fn builder() -> CorsIssueDetailsBuilder
Source§impl CorsIssueDetails
impl CorsIssueDetails
pub const IDENTIFIER: &'static str = "Audits.CorsIssueDetails"
Trait Implementations§
Source§impl Clone for CorsIssueDetails
impl Clone for CorsIssueDetails
Source§fn clone(&self) -> CorsIssueDetails
fn clone(&self) -> CorsIssueDetails
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 CorsIssueDetails
impl Debug for CorsIssueDetails
Source§impl<'de> Deserialize<'de> for CorsIssueDetails
impl<'de> Deserialize<'de> for CorsIssueDetails
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CorsIssueDetails, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CorsIssueDetails, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CorsIssueDetails
impl PartialEq for CorsIssueDetails
Source§impl Serialize for CorsIssueDetails
impl Serialize for CorsIssueDetails
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CorsIssueDetails
Auto Trait Implementations§
impl Freeze for CorsIssueDetails
impl RefUnwindSafe for CorsIssueDetails
impl Send for CorsIssueDetails
impl Sync for CorsIssueDetails
impl Unpin for CorsIssueDetails
impl UnwindSafe for CorsIssueDetails
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more