pub struct ArtifactTrustPolicy { /* private fields */ }Expand description
Deployment-owned allowlist applied before signature verification.
Implementations§
Source§impl ArtifactTrustPolicy
impl ArtifactTrustPolicy
Sourcepub fn allow_channel(self, channel: impl Into<String>) -> UpdateResult<Self>
pub fn allow_channel(self, channel: impl Into<String>) -> UpdateResult<Self>
Allows one exact update channel.
Sourcepub fn allow_origin(self, origin: impl Into<String>) -> UpdateResult<Self>
pub fn allow_origin(self, origin: impl Into<String>) -> UpdateResult<Self>
Allows one exact artifact origin such as https://updates.example.
Sourcepub fn verify(&self, artifact: &ArtifactDescriptor) -> UpdateResult<()>
pub fn verify(&self, artifact: &ArtifactDescriptor) -> UpdateResult<()>
Verifies channel and source origin against explicit allowlists.
Trait Implementations§
Source§impl Clone for ArtifactTrustPolicy
impl Clone for ArtifactTrustPolicy
Source§fn clone(&self) -> ArtifactTrustPolicy
fn clone(&self) -> ArtifactTrustPolicy
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 ArtifactTrustPolicy
impl Debug for ArtifactTrustPolicy
Source§impl Default for ArtifactTrustPolicy
impl Default for ArtifactTrustPolicy
Source§fn default() -> ArtifactTrustPolicy
fn default() -> ArtifactTrustPolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ArtifactTrustPolicy
impl RefUnwindSafe for ArtifactTrustPolicy
impl Send for ArtifactTrustPolicy
impl Sync for ArtifactTrustPolicy
impl Unpin for ArtifactTrustPolicy
impl UnsafeUnpin for ArtifactTrustPolicy
impl UnwindSafe for ArtifactTrustPolicy
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