pub struct DependencyLifecycleApproval { /* private fields */ }Expand description
Validated approval. Fields cannot be changed after parsing.
Implementations§
Source§impl DependencyLifecycleApproval
impl DependencyLifecycleApproval
pub fn package(&self) -> &str
pub fn version(&self) -> &str
pub fn hook(&self) -> &str
pub fn archive_digest(&self) -> &str
pub fn script_digest(&self) -> &str
pub fn policy(&self) -> &SandboxPolicy
pub fn environment(&self) -> &BTreeMap<String, String>
pub fn tools(&self) -> &[LifecycleTool]
pub fn dependencies(&self) -> bool
pub fn process_memory_stats(&self) -> bool
pub fn validate_script(&self, script: &str) -> Result<(), String>
Trait Implementations§
Source§impl Clone for DependencyLifecycleApproval
impl Clone for DependencyLifecycleApproval
Auto Trait Implementations§
impl Forget for DependencyLifecycleApproval
impl Freeze for DependencyLifecycleApprovalwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
PhantomData<LifecycleTool>: Freeze,
impl Move for DependencyLifecycleApproval
impl RefUnwindSafe for DependencyLifecycleApproval
impl Send for DependencyLifecycleApproval
impl Sync for DependencyLifecycleApproval
impl Unpin for DependencyLifecycleApproval
impl UnsafeUnpin for DependencyLifecycleApprovalwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
PhantomData<LifecycleTool>: UnsafeUnpin,
impl UnwindSafe for DependencyLifecycleApproval
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