pub struct SmartModuleOutput {
pub successes: Vec<Record>,
pub error: Option<SmartModuleTransformRuntimeError>,
}
Expand description
A type used to return processed records and/or an error from a SmartModule
Fields§
§successes: Vec<Record>
The successfully processed output Records
error: Option<SmartModuleTransformRuntimeError>
Any runtime error if one was encountered
Implementations§
Source§impl SmartModuleOutput
impl SmartModuleOutput
pub fn new(successes: Vec<Record>) -> Self
pub fn with_error( successes: Vec<Record>, error: Option<SmartModuleTransformRuntimeError>, ) -> Self
Trait Implementations§
Source§impl Debug for SmartModuleOutput
impl Debug for SmartModuleOutput
Source§impl Decoder for SmartModuleOutput
impl Decoder for SmartModuleOutput
Source§impl Default for SmartModuleOutput
impl Default for SmartModuleOutput
Source§fn default() -> SmartModuleOutput
fn default() -> SmartModuleOutput
Returns the “default value” for a type. Read more
Source§impl Encoder for SmartModuleOutput
impl Encoder for SmartModuleOutput
Auto Trait Implementations§
impl !Freeze for SmartModuleOutput
impl RefUnwindSafe for SmartModuleOutput
impl Send for SmartModuleOutput
impl Sync for SmartModuleOutput
impl Unpin for SmartModuleOutput
impl UnwindSafe for SmartModuleOutput
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