pub struct ReleaseInfo {
pub tag: String,
pub release_url: String,
pub assets: Vec<ReleaseAsset>,
pub attestation_status: Option<AttestationStatus>,
pub require_attestation: bool,
}Expand description
Simplified release info for update execution context.
Contains the minimal release metadata needed by plugins to execute updates.
Fields§
§tag: String§release_url: String§assets: Vec<ReleaseAsset>§attestation_status: Option<AttestationStatus>Attestation status as determined by the GitHub Attestations API.
Set by the controller from the most recent fetch_releases run.
None means the check was never performed or the source is not GitHub.
require_attestation: boolWhen true, the agent must abort the update if attestation is not Verified.
Copied from GitHubConfig.require_attestation by the controller at
trigger time.
Trait Implementations§
Source§impl Clone for ReleaseInfo
impl Clone for ReleaseInfo
Source§fn clone(&self) -> ReleaseInfo
fn clone(&self) -> ReleaseInfo
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 ReleaseInfo
impl Debug for ReleaseInfo
Source§impl<'de> Deserialize<'de> for ReleaseInfo
impl<'de> Deserialize<'de> for ReleaseInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReleaseInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReleaseInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ReleaseInfo
Source§impl PartialEq for ReleaseInfo
impl PartialEq for ReleaseInfo
Source§fn eq(&self, other: &ReleaseInfo) -> bool
fn eq(&self, other: &ReleaseInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReleaseInfo
impl Serialize for ReleaseInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ReleaseInfo
Source§impl WireValidate for ReleaseInfo
impl WireValidate for ReleaseInfo
Source§fn wire_validate(&self) -> Result<(), WireValidationError>
fn wire_validate(&self) -> Result<(), WireValidationError>
Validate that all fields are within wire protocol size limits.
Auto Trait Implementations§
impl Freeze for ReleaseInfo
impl RefUnwindSafe for ReleaseInfo
impl Send for ReleaseInfo
impl Sync for ReleaseInfo
impl Unpin for ReleaseInfo
impl UnsafeUnpin for ReleaseInfo
impl UnwindSafe for ReleaseInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.