pub struct StyledLine {
pub line: u64,
pub at: Option<u64>,
pub kind: LineKind,
pub runs: Vec<Run>,
pub omitted: u64,
}Expand description
One stored line of a job’s log, styled.
Fields§
§line: u64Its number in the stored log, from 0: the same as the plain log’s.
at: Option<u64>When the runner wrote it, in seconds since the Unix epoch; absent for a line without a timestamp.
kind: LineKindWhat it is.
runs: Vec<Run>Its text after the timestamp and the command, in order: at most RUNS_MAX runs of the line’s first
LINE_BYTES_MAX bytes.
omitted: u64Bytes of the stored line not shown: past LINE_BYTES_MAX or RUNS_MAX, or past what a read took.
Implementations§
Source§impl StyledLine
impl StyledLine
Sourcepub fn parse(line: u64, text: &str) -> StyledLine
pub fn parse(line: u64, text: &str) -> StyledLine
Styles stored line number line, whose text is text: its first LINE_BYTES_MAX bytes, in at most
RUNS_MAX runs.
Sourcepub fn omitted_words(&self) -> Option<String>
pub fn omitted_words(&self) -> Option<String>
What a reader is told of the bytes it does not show: 80.0K not shown; None when it shows them all. The
plain log (GET /v1/jobs/{id}/logs) has the whole line.
Trait Implementations§
Source§impl Clone for StyledLine
impl Clone for StyledLine
Source§impl Debug for StyledLine
impl Debug for StyledLine
Source§impl<'de> Deserialize<'de> for StyledLine
impl<'de> Deserialize<'de> for StyledLine
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 StyledLine
Source§impl PartialEq for StyledLine
impl PartialEq for StyledLine
Source§impl Serialize for StyledLine
impl Serialize for StyledLine
impl StructuralPartialEq for StyledLine
Auto Trait Implementations§
impl Forget for StyledLine
impl Freeze for StyledLine
impl Move for StyledLine
impl RefUnwindSafe for StyledLine
impl Send for StyledLine
impl Sync for StyledLine
impl Unpin for StyledLine
impl UnsafeUnpin for StyledLine
impl UnwindSafe for StyledLine
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.