INNER CODE UNIT · Rust
visit_unit
renegade-fi/renegade · crates/api/external-api/src/lib.rs:58
fn visit_unit<E>(self) -> Result<Self::Value, E>
where
E: serde::de::Error,
{
Ok(EmptyRequestResponse {})
}
}
// ---------
// | Tests |
// ---------
#[cfg(test)]
mod test {
use super::*;
/// Tests empty request/response serialization, expected behavior is that it
/// serializes to and from the string "null"