Atproto, serde deserialize & move strong_ref
This adds Serde deserialization. It also needs to add an error for handling the failure on these deserializations. I broke strong_ref into its own file because it was starting to grow a lot.
This commit is contained in:
parent
34719e7d01
commit
5bc903b2fa
11 changed files with 194 additions and 54 deletions
|
|
@ -20,6 +20,8 @@ pub enum FormatError {
|
|||
pub enum ParseError {
|
||||
#[error("Time Parse Error: {0}")]
|
||||
Datetime(#[from] time::error::Parse),
|
||||
#[error("Json Parse Error: {0}")]
|
||||
Serde(#[from] serde_json::error::Error),
|
||||
#[error("Length of parsed object too long, max: {max:?}, got: {got:?}.")]
|
||||
Length { max: usize, got: usize },
|
||||
#[error("Currently Did is enforced, cannot use handle, {handle:?}")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue