pub struct GitHubDraftReceiptV1 {Show 13 fields
pub schema_version: u32,
pub owner: String,
pub repository: String,
pub release_id: String,
pub tag: String,
pub source_revision: String,
pub github_release_id: u64,
pub draft: bool,
pub immutable: bool,
pub assets: Vec<StagingAsset>,
pub created: bool,
pub uploaded: u32,
pub reused: u32,
}Expand description
Bounded staging receipt (producer evidence, not an install receipt).
Fields§
§schema_version: u32Schema version, exactly 1.
owner: StringRepository owner.
repository: StringRepository name.
release_id: StringProduct release id.
tag: StringExact tag.
source_revision: StringSource revision.
github_release_id: u64GitHub numeric release id.
draft: boolDraft state, always true.
immutable: boolImmutable state, always false for staged drafts.
assets: Vec<StagingAsset>Ordered asset names.
created: boolTrue when the release was created by this invocation.
uploaded: u32Count of uploaded assets.
reused: u32Count of reused exact assets.
Implementations§
Source§impl GitHubDraftReceiptV1
impl GitHubDraftReceiptV1
Sourcepub fn from_json(text: &str) -> Result<Self, GithubError>
pub fn from_json(text: &str) -> Result<Self, GithubError>
Parse strict bounded JSON receipt.
Sourcepub fn to_json(&self) -> Result<String, GithubError>
pub fn to_json(&self) -> Result<String, GithubError>
Serialize after validation.
Sourcepub fn validate(&self) -> Result<(), GithubError>
pub fn validate(&self) -> Result<(), GithubError>
Validate receipt shape.
Trait Implementations§
Source§impl Clone for GitHubDraftReceiptV1
impl Clone for GitHubDraftReceiptV1
Source§impl Debug for GitHubDraftReceiptV1
impl Debug for GitHubDraftReceiptV1
Source§impl<'de> Deserialize<'de> for GitHubDraftReceiptV1
impl<'de> Deserialize<'de> for GitHubDraftReceiptV1
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 GitHubDraftReceiptV1
Source§impl PartialEq for GitHubDraftReceiptV1
impl PartialEq for GitHubDraftReceiptV1
Source§impl Serialize for GitHubDraftReceiptV1
impl Serialize for GitHubDraftReceiptV1
impl StructuralPartialEq for GitHubDraftReceiptV1
Auto Trait Implementations§
impl Forget for GitHubDraftReceiptV1
impl Freeze for GitHubDraftReceiptV1
impl Move for GitHubDraftReceiptV1
impl RefUnwindSafe for GitHubDraftReceiptV1
impl Send for GitHubDraftReceiptV1
impl Sync for GitHubDraftReceiptV1
impl Unpin for GitHubDraftReceiptV1
impl UnsafeUnpin for GitHubDraftReceiptV1
impl UnwindSafe for GitHubDraftReceiptV1
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.