(file: impl Into<String>, results: Vec<Record<T>>)
| 62 | |
| 63 | impl<T: Serialize> FileEnvelope<T> { |
| 64 | pub fn ok(file: impl Into<String>, results: Vec<Record<T>>) -> Self { |
| 65 | Self { file: file.into(), ok: true, error: None, results: Some(results) } |
| 66 | } |
| 67 | |
| 68 | pub fn err(file: impl Into<String>, error: ErrorRecord) -> Self { |
| 69 | Self { file: file.into(), ok: false, error: Some(error), results: None } |
no outgoing calls
no test coverage detected