mirror of
https://git.asonix.dog/asonix/activitystreams.git
synced 2024-11-22 03:40:59 +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()
|
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
|
let trait_impls: proc_macro2::TokenStream = input
|
||||||
.attrs
|
.attrs
|
||||||
|
|
|
@ -27,7 +27,7 @@ use crate::{
|
||||||
properties::{ApObjectProperties, ObjectProperties},
|
properties::{ApObjectProperties, ObjectProperties},
|
||||||
Object, ObjectBox,
|
Object, ObjectBox,
|
||||||
},
|
},
|
||||||
Base, Extensible, PropRefs,
|
Base, BaseBox, Extensible, PropRefs,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Indicates that the actor accepts the object.
|
/// Indicates that the actor accepts the object.
|
||||||
|
|
|
@ -24,7 +24,7 @@ use crate::{
|
||||||
properties::{ApObjectProperties, ObjectProperties},
|
properties::{ApObjectProperties, ObjectProperties},
|
||||||
Object, ObjectBox,
|
Object, ObjectBox,
|
||||||
},
|
},
|
||||||
Base, Extensible, PropRefs,
|
Base, BaseBox, Extensible, PropRefs,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Describes a software application.
|
/// Describes a software application.
|
||||||
|
|
|
@ -28,7 +28,7 @@ use crate::{
|
||||||
properties::{ApObjectProperties, ObjectProperties},
|
properties::{ApObjectProperties, ObjectProperties},
|
||||||
Object, ObjectBox,
|
Object, ObjectBox,
|
||||||
},
|
},
|
||||||
Base, Extensible, PropRefs,
|
Base, BaseBox, Extensible, PropRefs,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// The default `Collection` type.
|
/// The default `Collection` type.
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
use crate::{
|
use crate::{
|
||||||
ext::Ext,
|
ext::Ext,
|
||||||
link::{kind::*, properties::*, Link, LinkBox},
|
link::{kind::*, properties::*, Link, LinkBox},
|
||||||
Base, PropRefs,
|
Base, BaseBox, PropRefs,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(feature = "types")]
|
#[cfg(feature = "types")]
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
use crate::{
|
use crate::{
|
||||||
ext::Ext,
|
ext::Ext,
|
||||||
object::{kind::*, properties::*, Object, ObjectBox},
|
object::{kind::*, properties::*, Object, ObjectBox},
|
||||||
Base, Extensible, PropRefs,
|
Base, BaseBox, Extensible, PropRefs,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Represents any kind of multi-paragraph written work.
|
/// Represents any kind of multi-paragraph written work.
|
||||||
|
|
Loading…
Reference in a new issue