pub struct SecurityStateExplanation<'a> { /* private fields */ }Expand description
An explanation of an factor contributing to the security state.
Implementations§
Source§impl<'a> SecurityStateExplanation<'a>
impl<'a> SecurityStateExplanation<'a>
Sourcepub fn builder(
security_state: impl Into<SecurityState>,
title: impl Into<Cow<'a, str>>,
summary: impl Into<Cow<'a, str>>,
description: impl Into<Cow<'a, str>>,
mixed_content_type: impl Into<MixedContentType>,
certificate: Vec<Cow<'a, str>>,
) -> SecurityStateExplanationBuilder<'a>
pub fn builder( security_state: impl Into<SecurityState>, title: impl Into<Cow<'a, str>>, summary: impl Into<Cow<'a, str>>, description: impl Into<Cow<'a, str>>, mixed_content_type: impl Into<MixedContentType>, certificate: Vec<Cow<'a, str>>, ) -> SecurityStateExplanationBuilder<'a>
Creates a builder for this type with the required parameters:
security_state: Security state representing the severity of the factor being explained.title: Title describing the type of factor.summary: Short phrase describing the type of factor.description: Full text explanation of the factor.mixed_content_type: The type of mixed content described by the explanation.certificate: Page certificate.
Sourcepub fn security_state(&self) -> &SecurityState
pub fn security_state(&self) -> &SecurityState
Security state representing the severity of the factor being explained.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Full text explanation of the factor.
Sourcepub fn mixed_content_type(&self) -> &MixedContentType
pub fn mixed_content_type(&self) -> &MixedContentType
The type of mixed content described by the explanation.
Sourcepub fn certificate(&self) -> &[Cow<'a, str>]
pub fn certificate(&self) -> &[Cow<'a, str>]
Page certificate.
Sourcepub fn recommendations(&self) -> Option<&[Cow<'a, str>]>
pub fn recommendations(&self) -> Option<&[Cow<'a, str>]>
Recommendations to fix any issues.
Trait Implementations§
Source§impl<'a> Clone for SecurityStateExplanation<'a>
impl<'a> Clone for SecurityStateExplanation<'a>
Source§fn clone(&self) -> SecurityStateExplanation<'a>
fn clone(&self) -> SecurityStateExplanation<'a>
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<'a> Debug for SecurityStateExplanation<'a>
impl<'a> Debug for SecurityStateExplanation<'a>
Source§impl<'a> Default for SecurityStateExplanation<'a>
impl<'a> Default for SecurityStateExplanation<'a>
Source§fn default() -> SecurityStateExplanation<'a>
fn default() -> SecurityStateExplanation<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for SecurityStateExplanation<'a>
impl<'de, 'a> Deserialize<'de> for SecurityStateExplanation<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for SecurityStateExplanation<'a>
impl<'a> RefUnwindSafe for SecurityStateExplanation<'a>
impl<'a> Send for SecurityStateExplanation<'a>
impl<'a> Sync for SecurityStateExplanation<'a>
impl<'a> Unpin for SecurityStateExplanation<'a>
impl<'a> UnsafeUnpin for SecurityStateExplanation<'a>
impl<'a> UnwindSafe for SecurityStateExplanation<'a>
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