pub struct ServiceLog {
pub service: String,
pub source: &'static str,
pub log_path: Option<String>,
pub lines: Vec<String>,
}Expand description
One service’s recent logs as a substrate retrieved them, for the logs
verb. The substrate owns where the lines come from (a cloud API, a local
file); the CLI only renders them.
Fields§
§service: String§source: &'static strProvenance tag for --json output (e.g. "render_api", "file").
log_path: Option<String>Local log file path, when the lines were read from disk.
lines: Vec<String>Trait Implementations§
Source§impl Clone for ServiceLog
impl Clone for ServiceLog
Source§fn clone(&self) -> ServiceLog
fn clone(&self) -> ServiceLog
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServiceLog
impl RefUnwindSafe for ServiceLog
impl Send for ServiceLog
impl Sync for ServiceLog
impl Unpin for ServiceLog
impl UnsafeUnpin for ServiceLog
impl UnwindSafe for ServiceLog
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