pub struct PreImageRun {
pub schema_version: u32,
pub gateway: String,
pub project: String,
pub run_id: String,
pub release: String,
pub written_at: String,
pub project_action: String,
pub groups: bool,
pub providers: Vec<PreImageProvider>,
pub files: BTreeMap<String, String>,
}Expand description
pre-image/run.json: the complete set of one run’s pre-image (26-12).
Fields§
§schema_version: u32Always 1.
gateway: StringThe target’s gateway.
project: StringThe gateway project.
run_id: StringThe run the set belongs to.
release: StringThe release the run deployed.
written_at: StringWhen the set was written, UTC.
project_action: StringThe project action of the run: create, import, record or
skip.
groups: boolWhether the run planned a tag-group commit.
providers: Vec<PreImageProvider>The owned providers, byte-sorted by name and unique.
files: BTreeMap<String, String>Every other file of the set, by name, with its sha256.
Implementations§
Source§impl PreImageRun
impl PreImageRun
Sourcepub fn parse(
bytes: &[u8],
location: &str,
gateway: &str,
project: &str,
) -> Result<PreImageRun, CoreError>
pub fn parse( bytes: &[u8], location: &str, gateway: &str, project: &str, ) -> Result<PreImageRun, CoreError>
Parse and validate bytes read from location for gateway and
project. Every refusal is CoreError::DeployRunInvalid.
Sourcepub fn provider(&self, name: &str) -> Option<&PreImageProvider>
pub fn provider(&self, name: &str) -> Option<&PreImageProvider>
The provider entry named name.
Trait Implementations§
Source§impl Clone for PreImageRun
impl Clone for PreImageRun
Source§impl Debug for PreImageRun
impl Debug for PreImageRun
Source§impl<'de> Deserialize<'de> for PreImageRun
impl<'de> Deserialize<'de> for PreImageRun
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
Source§impl PartialEq for PreImageRun
impl PartialEq for PreImageRun
Source§impl Serialize for PreImageRun
impl Serialize for PreImageRun
impl StructuralPartialEq for PreImageRun
Auto Trait Implementations§
impl Forget for PreImageRun
impl Freeze for PreImageRun
impl Move for PreImageRun
impl RefUnwindSafe for PreImageRun
impl Send for PreImageRun
impl Sync for PreImageRun
impl Unpin for PreImageRun
impl UnsafeUnpin for PreImageRun
impl UnwindSafe for PreImageRun
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