Email get tests.

This commit is contained in:
Mauro D
2023-04-19 17:17:56 +00:00
parent f8acc4fe5a
commit a79dd14c5d
3 changed files with 2 additions and 121 deletions

View File

@@ -5,7 +5,6 @@ use serde::Serialize;
use store::BlobKind;
use crate::{
error::method::MethodError,
object::Object,
parser::{json::Parser, Ignore, JsonObjectParser, Token},
request::reference::{MaybeReference, ResultReference},
@@ -156,16 +155,6 @@ impl Value {
_ => Value::parse::<String, String>(parser),
}
}
pub fn as_blob(&self) -> Result<&BlobId, MethodError> {
match self {
Value::BlobId(blob) => Ok(blob),
_ => {
let log = "log";
Err(MethodError::ServerPartialFail)
}
}
}
}
impl<T: JsonObjectParser + Display + Eq> JsonObjectParser for SetValueMap<T> {