pub struct JsonLogLine {
pub level: String,
pub message: String,
pub module: String,
pub timestamp: String,
pub log_type: String,
pub change: Value,
pub hook: Value,
pub changes: Value,
pub outputs: Value,
}Expand description
A single JSON log line from Terraform’s streaming output.
Terraform emits these as NDJSON (one per line) when commands are run
with the -json flag.
Fields§
§level: StringLog level: “info”, “warn”, “error”.
message: StringHuman-readable message.
module: StringModule that emitted the message (e.g., “terraform.ui”).
timestamp: StringISO 8601 timestamp.
log_type: StringEvent type: “version”, “planned_change”, “change_summary”, “apply_start”, “apply_progress”, “apply_complete”, “apply_errored”, “outputs”, etc.
change: ValueChange details (for planned_change events).
hook: ValueHook details (for apply_start/apply_complete/apply_progress events).
changes: ValueChange summary (for change_summary events).
outputs: ValueOutput values (for outputs events).
Trait Implementations§
Source§impl Clone for JsonLogLine
impl Clone for JsonLogLine
Source§fn clone(&self) -> JsonLogLine
fn clone(&self) -> JsonLogLine
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 moreSource§impl Debug for JsonLogLine
impl Debug for JsonLogLine
Source§impl<'de> Deserialize<'de> for JsonLogLine
impl<'de> Deserialize<'de> for JsonLogLine
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
Auto Trait Implementations§
impl Freeze for JsonLogLine
impl RefUnwindSafe for JsonLogLine
impl Send for JsonLogLine
impl Sync for JsonLogLine
impl Unpin for JsonLogLine
impl UnsafeUnpin for JsonLogLine
impl UnwindSafe for JsonLogLine
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