pub struct StagingPayloadV1 {
pub schema_version: u32,
pub product_id: String,
pub release_id: String,
pub source_revision: String,
pub owner: String,
pub repository: String,
pub tag: String,
pub title: String,
pub prerelease: bool,
pub body: String,
pub assets: Vec<StagingAsset>,
}Expand description
Deterministic local staging payload.
Fields§
§schema_version: u32Schema version, exactly 1.
product_id: StringProduct id from manifest.
release_id: StringRelease id from manifest.
source_revision: StringSource revision from manifest.
owner: StringRepository owner.
repository: StringRepository name.
tag: StringExact existing tag.
title: StringDraft title.
prerelease: boolPrerelease intent.
body: StringBounded release notes.
assets: Vec<StagingAsset>Ordered asset records sorted by name.
Implementations§
Source§impl StagingPayloadV1
impl StagingPayloadV1
Sourcepub fn from_json(text: &str) -> Result<Self, GithubError>
pub fn from_json(text: &str) -> Result<Self, GithubError>
Parse strict bounded JSON payload.
Sourcepub fn to_json(&self) -> Result<String, GithubError>
pub fn to_json(&self) -> Result<String, GithubError>
Serialize deterministically after validation.
Sourcepub fn validate(&self) -> Result<(), GithubError>
pub fn validate(&self) -> Result<(), GithubError>
Validate bounds, paths, digests, and ordering.
Trait Implementations§
Source§impl Clone for StagingPayloadV1
impl Clone for StagingPayloadV1
Source§impl Debug for StagingPayloadV1
impl Debug for StagingPayloadV1
Source§impl<'de> Deserialize<'de> for StagingPayloadV1
impl<'de> Deserialize<'de> for StagingPayloadV1
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 StagingPayloadV1
Source§impl PartialEq for StagingPayloadV1
impl PartialEq for StagingPayloadV1
Source§impl Serialize for StagingPayloadV1
impl Serialize for StagingPayloadV1
impl StructuralPartialEq for StagingPayloadV1
Auto Trait Implementations§
impl Forget for StagingPayloadV1
impl Freeze for StagingPayloadV1
impl Move for StagingPayloadV1
impl RefUnwindSafe for StagingPayloadV1
impl Send for StagingPayloadV1
impl Sync for StagingPayloadV1
impl Unpin for StagingPayloadV1
impl UnsafeUnpin for StagingPayloadV1
impl UnwindSafe for StagingPayloadV1
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.