pub struct SecurityPolicy {
pub schema_version: u16,
pub level: SecurityLevel,
pub protocol: ProtocolLimits,
pub auth: AuthenticationPolicy,
pub egress: EgressPolicy,
pub uploads: UploadLimits,
pub browser_controls: BTreeSet<BrowserControl>,
pub deployment_controls: BTreeSet<DeploymentControl>,
}Expand description
Complete security policy with explicit safe profiles.
Fields§
§schema_version: u16§level: SecurityLevel§protocol: ProtocolLimits§auth: AuthenticationPolicy§egress: EgressPolicy§uploads: UploadLimits§browser_controls: BTreeSet<BrowserControl>§deployment_controls: BTreeSet<DeploymentControl>Implementations§
Source§impl SecurityPolicy
impl SecurityPolicy
pub fn standard( trusted_issuer: impl Into<String>, audience: impl Into<String>, ) -> Self
pub fn enterprise( trusted_issuer: impl Into<String>, audience: impl Into<String>, ) -> Self
pub fn high_assurance( trusted_issuer: impl Into<String>, audience: impl Into<String>, ) -> Self
pub fn validate(&self) -> Result<(), SecurityError>
Trait Implementations§
Source§impl Clone for SecurityPolicy
impl Clone for SecurityPolicy
Source§fn clone(&self) -> SecurityPolicy
fn clone(&self) -> SecurityPolicy
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 SecurityPolicy
impl Debug for SecurityPolicy
Source§impl<'de> Deserialize<'de> for SecurityPolicy
impl<'de> Deserialize<'de> for SecurityPolicy
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
impl Eq for SecurityPolicy
Source§impl PartialEq for SecurityPolicy
impl PartialEq for SecurityPolicy
Source§impl Serialize for SecurityPolicy
impl Serialize for SecurityPolicy
impl StructuralPartialEq for SecurityPolicy
Auto Trait Implementations§
impl Freeze for SecurityPolicy
impl RefUnwindSafe for SecurityPolicy
impl Send for SecurityPolicy
impl Sync for SecurityPolicy
impl Unpin for SecurityPolicy
impl UnsafeUnpin for SecurityPolicy
impl UnwindSafe for SecurityPolicy
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