Struct format_serde_error::SerdeError [−][src]
pub struct SerdeError { /* fields omitted */ }
Expand description
Struct for formatting the error together with the source file to give a nicer output.
Implementations
Create a new SerdeError
from compatible serde errors. See
ErrorTypes
for more information.
Set if the output should be contextualized or not.
By default contextualization is set to CONTEXTUALIZE_DEFAULT
.
Get if the output should be contextualized or not.
By default contextualization is set to CONTEXTUALIZE_DEFAULT
.
Set the amount of lines that should be shown before and after the error.
By default the amount of context is set to CONTEXT_LINES_DEFAULT
.
Get the amount of lines that should be shown before and after the error.
Set the amount of characters that should be shown before and after the
error. By default the amount of context is set to
CONTEXT_CHARACTERS_DEFAULT
.
Get the amount of characters that should be shown before and after the
error. Default value is CONTEXT_CHARACTERS_DEFAULT
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SerdeError
impl Send for SerdeError
impl Sync for SerdeError
impl Unpin for SerdeError
impl UnwindSafe for SerdeError