pub struct Trust {
pub kernel: Access,
pub config: Access,
pub script: Access,
pub plugin: Access,
}Expand description
Who may do what, by where the extension came from.
The axis is provenance, not privilege level: the question a host is really answering is “did the operator write this, or download it”.
Fields§
§kernel: AccessThe engine’s own registrations.
config: AccessWritten in settings by whoever runs this deployment.
script: AccessA script in the operator’s own project.
plugin: AccessAn installed plugin.
Implementations§
Source§impl Trust
impl Trust
Sourcepub const fn operator_full_plugin_adds() -> Self
pub const fn operator_full_plugin_adds() -> Self
Everything the operator wrote is unrestricted; a plugin may add.
Sourcepub const fn operator_full_plugin_declares() -> Self
pub const fn operator_full_plugin_declares() -> Self
Everything the operator wrote is unrestricted; a plugin needs to have declared the capability.
Trait Implementations§
impl Copy for Trust
impl Eq for Trust
impl StructuralPartialEq for Trust
Auto Trait Implementations§
impl Forget for Trust
impl Freeze for Trust
impl Move for Trust
impl RefUnwindSafe for Trust
impl Send for Trust
impl Sync for Trust
impl Unpin for Trust
impl UnsafeUnpin for Trust
impl UnwindSafe for Trust
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