pub struct SourcePolicyV2 {Show 23 fields
pub schema_version: String,
pub source_id: String,
pub channel: String,
pub epoch: String,
pub previous_epoch: String,
pub previous_document_sha256: String,
pub root_epoch: String,
pub source_type: String,
pub source_class: String,
pub allowed_publishers: Vec<String>,
pub allowed_artifact_hosts: Vec<String>,
pub active_keys: SourcePolicyActiveKeys,
pub capability_publisher_scopes: Vec<SourcePolicyCapabilityPublisherScope>,
pub require_signature: bool,
pub install_policy: String,
pub unsigned_policy: String,
pub downgrade_policy: String,
pub minimum_revocation_epoch: String,
pub limits: SourcePolicyLimits,
pub generated_at: String,
pub expires_at: String,
pub key_id: String,
pub signature: String,
}Fields§
§schema_version: String§source_id: String§channel: String§epoch: String§previous_epoch: String§previous_document_sha256: String§root_epoch: String§source_type: String§source_class: String§allowed_publishers: Vec<String>§allowed_artifact_hosts: Vec<String>§active_keys: SourcePolicyActiveKeys§capability_publisher_scopes: Vec<SourcePolicyCapabilityPublisherScope>§require_signature: bool§install_policy: String§unsigned_policy: String§downgrade_policy: String§minimum_revocation_epoch: String§limits: SourcePolicyLimits§generated_at: String§expires_at: String§key_id: String§signature: StringTrait Implementations§
Source§impl Clone for SourcePolicyV2
impl Clone for SourcePolicyV2
Source§fn clone(&self) -> SourcePolicyV2
fn clone(&self) -> SourcePolicyV2
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 SourcePolicyV2
impl Debug for SourcePolicyV2
Source§impl<'de> Deserialize<'de> for SourcePolicyV2
impl<'de> Deserialize<'de> for SourcePolicyV2
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 SourcePolicyV2
Source§impl PartialEq for SourcePolicyV2
impl PartialEq for SourcePolicyV2
Source§impl Serialize for SourcePolicyV2
impl Serialize for SourcePolicyV2
impl StructuralPartialEq for SourcePolicyV2
Auto Trait Implementations§
impl Freeze for SourcePolicyV2
impl RefUnwindSafe for SourcePolicyV2
impl Send for SourcePolicyV2
impl Sync for SourcePolicyV2
impl Unpin for SourcePolicyV2
impl UnsafeUnpin for SourcePolicyV2
impl UnwindSafe for SourcePolicyV2
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