#[non_exhaustive]pub struct GcsReportLogMessage {
pub severity: String,
pub category: String,
pub file_path: String,
pub filename: String,
pub source_script_line: i32,
pub source_script_column: i32,
pub message: String,
pub script_context: String,
pub action: String,
pub effect: String,
pub object_name: String,
/* private fields */
}Expand description
A record in the aggregate CSV report for a migration workflow
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.severity: StringSeverity of the translation record.
category: StringCategory of the error/warning. Example: SyntaxError
file_path: StringThe file path in which the error occurred
filename: StringThe file name in which the error occurred
source_script_line: i32Specifies the row from the source text where the error occurred (0 based, -1 for messages without line location). Example: 2
source_script_column: i32Specifies the column from the source texts where the error occurred. (0 based, -1 for messages without column location) example: 6
message: StringDetailed message of the record.
script_context: StringThe script context (obfuscated) in which the error occurred
action: StringCategory of the error/warning. Example: SyntaxError
effect: StringEffect of the error/warning. Example: COMPATIBILITY
object_name: StringName of the affected object in the log message.
Implementations§
Source§impl GcsReportLogMessage
impl GcsReportLogMessage
pub fn new() -> Self
Sourcepub fn set_severity<T: Into<String>>(self, v: T) -> Self
pub fn set_severity<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_category<T: Into<String>>(self, v: T) -> Self
pub fn set_category<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_file_path<T: Into<String>>(self, v: T) -> Self
pub fn set_file_path<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_filename<T: Into<String>>(self, v: T) -> Self
pub fn set_filename<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_source_script_line<T: Into<i32>>(self, v: T) -> Self
pub fn set_source_script_line<T: Into<i32>>(self, v: T) -> Self
Sets the value of source_script_line.
§Example
let x = GcsReportLogMessage::new().set_source_script_line(42);Sourcepub fn set_source_script_column<T: Into<i32>>(self, v: T) -> Self
pub fn set_source_script_column<T: Into<i32>>(self, v: T) -> Self
Sets the value of source_script_column.
§Example
let x = GcsReportLogMessage::new().set_source_script_column(42);Sourcepub fn set_message<T: Into<String>>(self, v: T) -> Self
pub fn set_message<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_script_context<T: Into<String>>(self, v: T) -> Self
pub fn set_script_context<T: Into<String>>(self, v: T) -> Self
Sets the value of script_context.
§Example
let x = GcsReportLogMessage::new().set_script_context("example");Sourcepub fn set_action<T: Into<String>>(self, v: T) -> Self
pub fn set_action<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_effect<T: Into<String>>(self, v: T) -> Self
pub fn set_effect<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_object_name<T: Into<String>>(self, v: T) -> Self
pub fn set_object_name<T: Into<String>>(self, v: T) -> Self
Sets the value of object_name.
§Example
let x = GcsReportLogMessage::new().set_object_name("example");Trait Implementations§
Source§impl Clone for GcsReportLogMessage
impl Clone for GcsReportLogMessage
Source§fn clone(&self) -> GcsReportLogMessage
fn clone(&self) -> GcsReportLogMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more