mirror of
https://git.asonix.dog/asonix/activitystreams.git
synced 2024-11-14 14:21:12 +00:00
Don't forget BaseBox
This commit is contained in:
parent
7dda503c65
commit
3258d7e0a7
6 changed files with 13 additions and 5 deletions
|
@ -205,6 +205,14 @@ pub fn ref_derive(input: TokenStream) -> TokenStream {
|
|||
Default::default()
|
||||
}
|
||||
}
|
||||
|
||||
impl std::convert::TryFrom<#name> for BaseBox {
|
||||
type Error = std::io::Error;
|
||||
|
||||
fn try_from(s: #name) -> Result<Self, Self::Error> {
|
||||
BaseBox::from_concrete(s)
|
||||
}
|
||||
}
|
||||
};
|
||||
let trait_impls: proc_macro2::TokenStream = input
|
||||
.attrs
|
||||
|
|
|
@ -27,7 +27,7 @@ use crate::{
|
|||
properties::{ApObjectProperties, ObjectProperties},
|
||||
Object, ObjectBox,
|
||||
},
|
||||
Base, Extensible, PropRefs,
|
||||
Base, BaseBox, Extensible, PropRefs,
|
||||
};
|
||||
|
||||
/// Indicates that the actor accepts the object.
|
||||
|
|
|
@ -24,7 +24,7 @@ use crate::{
|
|||
properties::{ApObjectProperties, ObjectProperties},
|
||||
Object, ObjectBox,
|
||||
},
|
||||
Base, Extensible, PropRefs,
|
||||
Base, BaseBox, Extensible, PropRefs,
|
||||
};
|
||||
|
||||
/// Describes a software application.
|
||||
|
|
|
@ -28,7 +28,7 @@ use crate::{
|
|||
properties::{ApObjectProperties, ObjectProperties},
|
||||
Object, ObjectBox,
|
||||
},
|
||||
Base, Extensible, PropRefs,
|
||||
Base, BaseBox, Extensible, PropRefs,
|
||||
};
|
||||
|
||||
/// The default `Collection` type.
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
use crate::{
|
||||
ext::Ext,
|
||||
link::{kind::*, properties::*, Link, LinkBox},
|
||||
Base, PropRefs,
|
||||
Base, BaseBox, PropRefs,
|
||||
};
|
||||
|
||||
#[cfg(feature = "types")]
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
use crate::{
|
||||
ext::Ext,
|
||||
object::{kind::*, properties::*, Object, ObjectBox},
|
||||
Base, Extensible, PropRefs,
|
||||
Base, BaseBox, Extensible, PropRefs,
|
||||
};
|
||||
|
||||
/// Represents any kind of multi-paragraph written work.
|
||||
|
|
Loading…
Reference in a new issue