pub struct ProjectJournal {
pub schema_version: u32,
pub gateway: String,
pub project: String,
pub run_id: String,
pub state: JournalState,
pub started_at: String,
pub providers: Vec<String>,
}Expand description
The host journal of a tag-owning run (26-12): written after the complete
pre-image and before the first gateway write, cleared after a green run or
a verified rollback, left after rollback_failed.
Fields§
§schema_version: u32Always 1.
gateway: StringThe target’s gateway.
project: StringThe gateway project.
run_id: StringThe run the journal belongs to.
state: JournalStateWhere the run stands.
started_at: StringWhen the run (or the rollback) started, UTC.
providers: Vec<String>The owned providers, byte-sorted and unique.
Implementations§
Source§impl ProjectJournal
impl ProjectJournal
Sourcepub fn parse(
bytes: &[u8],
location: &str,
gateway: &str,
project: &str,
) -> Result<ProjectJournal, CoreError>
pub fn parse( bytes: &[u8], location: &str, gateway: &str, project: &str, ) -> Result<ProjectJournal, CoreError>
Parse and validate bytes read from location for gateway and
project. Every refusal is CoreError::DeployRunInvalid.
Trait Implementations§
Source§impl Clone for ProjectJournal
impl Clone for ProjectJournal
Source§impl Debug for ProjectJournal
impl Debug for ProjectJournal
Source§impl<'de> Deserialize<'de> for ProjectJournal
impl<'de> Deserialize<'de> for ProjectJournal
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 ProjectJournal
Source§impl PartialEq for ProjectJournal
impl PartialEq for ProjectJournal
Source§impl Serialize for ProjectJournal
impl Serialize for ProjectJournal
impl StructuralPartialEq for ProjectJournal
Auto Trait Implementations§
impl Forget for ProjectJournal
impl Freeze for ProjectJournal
impl Move for ProjectJournal
impl RefUnwindSafe for ProjectJournal
impl Send for ProjectJournal
impl Sync for ProjectJournal
impl Unpin for ProjectJournal
impl UnsafeUnpin for ProjectJournal
impl UnwindSafe for ProjectJournal
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.