pub struct SandboxGrant {Show 13 fields
pub grant_id: String,
pub runtime: String,
pub runtime_version: Option<String>,
pub profile: String,
pub image_digest: Option<String>,
pub template_digest: Option<String>,
pub filesystem_preopens: Option<Vec<FilesystemPreopen>>,
pub env: Box<EnvExposurePolicy>,
pub network: Box<NetworkGrant>,
pub limits: Option<Box<SandboxGrantLimits>>,
pub declared_at: String,
pub policy_epoch: Option<String>,
pub grant_hash: Option<String>,
}Fields§
§grant_id: String§runtime: String§runtime_version: Option<String>§profile: String§image_digest: Option<String>§template_digest: Option<String>§filesystem_preopens: Option<Vec<FilesystemPreopen>>§env: Box<EnvExposurePolicy>§network: Box<NetworkGrant>§limits: Option<Box<SandboxGrantLimits>>§declared_at: String§policy_epoch: Option<String>§grant_hash: Option<String>Implementations§
Source§impl SandboxGrant
impl SandboxGrant
pub fn new( grant_id: String, runtime: String, profile: String, env: EnvExposurePolicy, network: NetworkGrant, declared_at: String, ) -> SandboxGrant
Trait Implementations§
Source§impl Clone for SandboxGrant
impl Clone for SandboxGrant
Source§fn clone(&self) -> SandboxGrant
fn clone(&self) -> SandboxGrant
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 SandboxGrant
impl Debug for SandboxGrant
Source§impl Default for SandboxGrant
impl Default for SandboxGrant
Source§fn default() -> SandboxGrant
fn default() -> SandboxGrant
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SandboxGrant
impl<'de> Deserialize<'de> for SandboxGrant
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
Source§impl PartialEq for SandboxGrant
impl PartialEq for SandboxGrant
Source§fn eq(&self, other: &SandboxGrant) -> bool
fn eq(&self, other: &SandboxGrant) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SandboxGrant
impl Serialize for SandboxGrant
impl StructuralPartialEq for SandboxGrant
Auto Trait Implementations§
impl Freeze for SandboxGrant
impl RefUnwindSafe for SandboxGrant
impl Send for SandboxGrant
impl Sync for SandboxGrant
impl Unpin for SandboxGrant
impl UnsafeUnpin for SandboxGrant
impl UnwindSafe for SandboxGrant
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