Build an [`ArrayRejectMsg`] for a rejected inbound op. `op_hlc` is the HLC of the offending op. `reason` is a structured code. `detail` is a human-readable explanation.
(
array: &str,
op_hlc: Hlc,
reason: ArrayRejectReason,
detail: impl Into<String>,
)
| 10 | /// `op_hlc` is the HLC of the offending op. `reason` is a structured code. |
| 11 | /// `detail` is a human-readable explanation. |
| 12 | pub fn build_reject( |
| 13 | array: &str, |
| 14 | op_hlc: Hlc, |
| 15 | reason: ArrayRejectReason, |
| 16 | detail: impl Into<String>, |
| 17 | ) -> ArrayRejectMsg { |
| 18 | ArrayRejectMsg { |
| 19 | array: array.to_owned(), |
| 20 | op_hlc_bytes: op_hlc.to_bytes(), |
| 21 | reason, |
| 22 | detail: detail.into(), |
| 23 | } |
| 24 | } |
no test coverage detected