Struct aws_sdk_appsync::types::CodeErrorLocation
source · #[non_exhaustive]pub struct CodeErrorLocation {
pub line: i32,
pub column: i32,
pub span: i32,
}
Expand description
Describes the location of the error in a code sample.
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.line: i32
The line number in the code. Defaults to 0
if unknown.
column: i32
The column number in the code. Defaults to 0
if unknown.
span: i32
The span/length of the error. Defaults to -1
if unknown.
Implementations§
source§impl CodeErrorLocation
impl CodeErrorLocation
sourcepub fn builder() -> CodeErrorLocationBuilder
pub fn builder() -> CodeErrorLocationBuilder
Creates a new builder-style object to manufacture CodeErrorLocation
.
Trait Implementations§
source§impl Clone for CodeErrorLocation
impl Clone for CodeErrorLocation
source§fn clone(&self) -> CodeErrorLocation
fn clone(&self) -> CodeErrorLocation
Returns a copy 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 CodeErrorLocation
impl Debug for CodeErrorLocation
source§impl PartialEq for CodeErrorLocation
impl PartialEq for CodeErrorLocation
source§fn eq(&self, other: &CodeErrorLocation) -> bool
fn eq(&self, other: &CodeErrorLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CodeErrorLocation
Auto Trait Implementations§
impl RefUnwindSafe for CodeErrorLocation
impl Send for CodeErrorLocation
impl Sync for CodeErrorLocation
impl Unpin for CodeErrorLocation
impl UnwindSafe for CodeErrorLocation
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.