Struct ExportedJournal
pub struct ExportedJournal {
pub workflow_id: String,
pub workflow_type: String,
pub version: u32,
pub status: String,
pub records: Vec<RecordBuf>,
}Expand description
A journal read from an export file.
Fields§
§workflow_id: String§workflow_type: String§version: u32§status: String§records: Vec<RecordBuf>Implementations§
§impl ExportedJournal
impl ExportedJournal
pub fn from_detail(d: &RunDetail) -> Self
pub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Whether the export holds the run’s whole journal (a finished run of
an engine without keep_history keeps only its start, attributes,
streams and result).
pub fn encode(&self) -> Vec<u8> ⓘ
pub fn decode(bytes: &[u8]) -> Result<Self>
pub fn write(&self, path: &Path) -> Result<()>
pub fn read(path: &Path) -> Result<Self>
Trait Implementations§
§impl Clone for ExportedJournal
impl Clone for ExportedJournal
§fn clone(&self) -> ExportedJournal
fn clone(&self) -> ExportedJournal
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ExportedJournal
impl Debug for ExportedJournal
§impl PartialEq for ExportedJournal
impl PartialEq for ExportedJournal
impl Eq for ExportedJournal
impl StructuralPartialEq for ExportedJournal
Auto Trait Implementations§
impl Freeze for ExportedJournal
impl RefUnwindSafe for ExportedJournal
impl Send for ExportedJournal
impl Sync for ExportedJournal
impl Unpin for ExportedJournal
impl UnsafeUnpin for ExportedJournal
impl UnwindSafe for ExportedJournal
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