[][src]Struct activitystreams_ext::Ext1

pub struct Ext1<Inner, A> {
    pub ext_one: A,
    pub inner: Inner,
}

Extend a type with a single value

Fields

ext_one: Ainner: Inner

The type being extended

Implementations

impl<Inner, A> Ext1<Inner, A>[src]

pub fn new(inner: Inner, ext_one: A) -> Self[src]

pub fn into_parts(self) -> (Inner, A)[src]

pub fn extend<B>(self, ext_two: B) -> Ext2<Inner, A, B>[src]

Trait Implementations

impl<Inner, A> Activity for Ext1<Inner, A> where
    Inner: Activity
[src]

impl<Inner, A> Actor for Ext1<Inner, A> where
    Inner: Actor
[src]

impl<Inner, A> ActorAndObjectRef for Ext1<Inner, A> where
    Inner: ActorAndObjectRef
[src]

impl<Inner, A, Kind> AsActivity<Kind> for Ext1<Inner, A> where
    Inner: AsActivity<Kind>, 
[src]

impl<Inner, A, ApInner> AsApActor<ApInner> for Ext1<Inner, A> where
    Inner: AsApActor<ApInner>, 
[src]

impl<Inner, A, ApInner> AsApObject<ApInner> for Ext1<Inner, A> where
    Inner: AsApObject<ApInner>, 
[src]

impl<Inner, A, Kind> AsBase<Kind> for Ext1<Inner, A> where
    Inner: AsBase<Kind>, 
[src]

impl<Inner, A, Kind> AsCollection<Kind> for Ext1<Inner, A> where
    Inner: AsCollection<Kind>, 
[src]

impl<Inner, A, Kind> AsCollectionPage<Kind> for Ext1<Inner, A> where
    Inner: AsCollectionPage<Kind>, 
[src]

impl<Inner, A, Kind> AsObject<Kind> for Ext1<Inner, A> where
    Inner: AsObject<Kind>, 
[src]

impl<Inner, A> AsQuestion for Ext1<Inner, A> where
    Inner: AsQuestion
[src]

impl<Inner, A> Base for Ext1<Inner, A> where
    Inner: Base
[src]

impl<Inner: Clone, A: Clone> Clone for Ext1<Inner, A>[src]

impl<Inner, A> Collection for Ext1<Inner, A> where
    Inner: Collection
[src]

impl<Inner, A> CollectionPage for Ext1<Inner, A> where
    Inner: CollectionPage
[src]

impl<Inner: Debug, A: Debug> Debug for Ext1<Inner, A>[src]

impl<'de, Inner, A> Deserialize<'de> for Ext1<Inner, A> where
    Inner: Deserialize<'de>,
    A: Deserialize<'de>, 
[src]

impl<Inner, A, Kind, Error> Extends<Kind> for Ext1<Inner, A> where
    Inner: Extends<Kind, Error = Error> + UnparsedMut,
    A: UnparsedExtension<Inner, Error = Error>,
    Error: From<Error> + Error
[src]

type Error = Error

The erro produced must be a StdError

impl<Inner, A> IntransitiveActivity for Ext1<Inner, A> where
    Inner: IntransitiveActivity
[src]

impl<Inner, A> Object for Ext1<Inner, A> where
    Inner: Object
[src]

impl<Inner, A> OptOriginRef for Ext1<Inner, A> where
    Inner: OptOriginRef
[src]

impl<Inner, A> OptTargetRef for Ext1<Inner, A> where
    Inner: OptTargetRef
[src]

impl<Inner, A> OriginRef for Ext1<Inner, A> where
    Inner: OriginRef
[src]

impl<Inner, A> Serialize for Ext1<Inner, A> where
    Inner: Serialize,
    A: Serialize
[src]

impl<Inner, A> TargetRef for Ext1<Inner, A> where
    Inner: TargetRef
[src]

Auto Trait Implementations

impl<Inner, A> RefUnwindSafe for Ext1<Inner, A> where
    A: RefUnwindSafe,
    Inner: RefUnwindSafe

impl<Inner, A> Send for Ext1<Inner, A> where
    A: Send,
    Inner: Send

impl<Inner, A> Sync for Ext1<Inner, A> where
    A: Sync,
    Inner: Sync

impl<Inner, A> Unpin for Ext1<Inner, A> where
    A: Unpin,
    Inner: Unpin

impl<Inner, A> UnwindSafe for Ext1<Inner, A> where
    A: UnwindSafe,
    Inner: UnwindSafe

Blanket Implementations

impl<T, Kind> ActivityExt<Kind> for T where
    T: AsActivity<Kind>, 
[src]

impl<T> ActorAndObjectRefExt for T where
    T: ActorAndObjectRef
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, Inner> ApActorExt<Inner> for T where
    T: AsApActor<Inner>, 
[src]

impl<T, Inner> ApObjectExt<Inner> for T where
    T: AsApObject<Inner>, 
[src]

impl<T, Kind> BaseExt<Kind> for T where
    T: AsBase<Kind>, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, Kind> CollectionExt<Kind> for T where
    T: AsCollection<Kind>, 
[src]

impl<T, Kind> CollectionPageExt<Kind> for T where
    T: AsCollectionPage<Kind>, 
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T, Kind> ExtendsExt<Kind> for T where
    T: Extends<Kind>,
    <T as Extends<Kind>>::Error: From<Error>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Kind> ObjectExt<Kind> for T where
    T: AsObject<Kind>, 
[src]

impl<T> OptOriginRefExt for T where
    T: OptOriginRef
[src]

impl<T> OptTargetRefExt for T where
    T: OptTargetRef
[src]

impl<T> OriginRefExt for T where
    T: OriginRef
[src]

impl<T> QuestionExt for T where
    T: AsQuestion
[src]

impl<T> TargetRefExt for T where
    T: TargetRef
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.