Email get tests.
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user