#[non_exhaustive]pub struct TranslationReportRecord {
pub severity: Severity,
pub script_line: i32,
pub script_column: i32,
pub category: String,
pub message: String,
/* private fields */
}Expand description
Details about a record.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.severity: SeveritySeverity of the translation record.
script_line: i32Specifies the row from the source text where the error occurred (0 based). Example: 2
script_column: i32Specifies the column from the source texts where the error occurred. (0 based) example: 6
category: StringCategory of the error/warning. Example: SyntaxError
message: StringDetailed message of the record.
Implementations§
Source§impl TranslationReportRecord
impl TranslationReportRecord
pub fn new() -> Self
Sourcepub fn set_severity<T: Into<Severity>>(self, v: T) -> Self
pub fn set_severity<T: Into<Severity>>(self, v: T) -> Self
Sets the value of severity.
§Example
ⓘ
use google_cloud_bigquery_migration_v2::model::translation_report_record::Severity;
let x0 = TranslationReportRecord::new().set_severity(Severity::Info);
let x1 = TranslationReportRecord::new().set_severity(Severity::Warning);
let x2 = TranslationReportRecord::new().set_severity(Severity::Error);Sourcepub fn set_script_line<T: Into<i32>>(self, v: T) -> Self
pub fn set_script_line<T: Into<i32>>(self, v: T) -> Self
Sets the value of script_line.
§Example
ⓘ
let x = TranslationReportRecord::new().set_script_line(42);Sourcepub fn set_script_column<T: Into<i32>>(self, v: T) -> Self
pub fn set_script_column<T: Into<i32>>(self, v: T) -> Self
Sets the value of script_column.
§Example
ⓘ
let x = TranslationReportRecord::new().set_script_column(42);Sourcepub fn set_category<T: Into<String>>(self, v: T) -> Self
pub fn set_category<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for TranslationReportRecord
impl Clone for TranslationReportRecord
Source§fn clone(&self) -> TranslationReportRecord
fn clone(&self) -> TranslationReportRecord
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 TranslationReportRecord
impl Debug for TranslationReportRecord
Source§impl Default for TranslationReportRecord
impl Default for TranslationReportRecord
Source§fn default() -> TranslationReportRecord
fn default() -> TranslationReportRecord
Returns the “default value” for a type. Read more
Source§impl Message for TranslationReportRecord
impl Message for TranslationReportRecord
Source§impl PartialEq for TranslationReportRecord
impl PartialEq for TranslationReportRecord
impl StructuralPartialEq for TranslationReportRecord
Auto Trait Implementations§
impl Freeze for TranslationReportRecord
impl RefUnwindSafe for TranslationReportRecord
impl Send for TranslationReportRecord
impl Sync for TranslationReportRecord
impl Unpin for TranslationReportRecord
impl UnsafeUnpin for TranslationReportRecord
impl UnwindSafe for TranslationReportRecord
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