#[non_exhaustive]pub struct CompilationError {
pub message: String,
pub stack: String,
pub path: String,
pub action_target: Option<Target>,
/* private fields */
}Expand description
An error encountered when attempting to compile a Dataform project.
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.message: StringOutput only. The error’s top level message.
stack: StringOutput only. The error’s full stack trace.
path: StringOutput only. The path of the file where this error occurred, if available, relative to the project root.
action_target: Option<Target>Output only. The identifier of the action where this error occurred, if available.
Implementations§
Source§impl CompilationError
impl CompilationError
pub fn new() -> Self
Sourcepub fn set_message<T: Into<String>>(self, v: T) -> Self
pub fn set_message<T: Into<String>>(self, v: T) -> Self
Sets the value of message.
Sourcepub fn set_action_target<T>(self, v: T) -> Self
pub fn set_action_target<T>(self, v: T) -> Self
Sets the value of action_target.
Sourcepub fn set_or_clear_action_target<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_action_target<T>(self, v: Option<T>) -> Self
Sets or clears the value of action_target.
Trait Implementations§
Source§impl Clone for CompilationError
impl Clone for CompilationError
Source§fn clone(&self) -> CompilationError
fn clone(&self) -> CompilationError
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 CompilationError
impl Debug for CompilationError
Source§impl Default for CompilationError
impl Default for CompilationError
Source§fn default() -> CompilationError
fn default() -> CompilationError
Returns the “default value” for a type. Read more
Source§impl Message for CompilationError
impl Message for CompilationError
Source§impl PartialEq for CompilationError
impl PartialEq for CompilationError
impl StructuralPartialEq for CompilationError
Auto Trait Implementations§
impl Freeze for CompilationError
impl RefUnwindSafe for CompilationError
impl Send for CompilationError
impl Sync for CompilationError
impl Unpin for CompilationError
impl UnwindSafe for CompilationError
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