[][src]Struct activitystreams_ext::Ext2

pub struct Ext2<Inner, A, B> {
    pub ext_one: A,
    pub ext_two: B,
    pub inner: Inner,
}

Extend a type with two values

Fields

ext_one: Aext_two: Binner: Inner

The type being extended

Implementations

impl<Inner, A, B> Ext2<Inner, A, B>[src]

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

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

pub fn extend<C>(self, ext_three: C) -> Ext3<Inner, A, B, C>[src]

Trait Implementations

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

type Error = Error

The erro produced must be a StdError

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

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

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

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

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

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

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

Auto Trait Implementations

impl<Inner, A, B> RefUnwindSafe for Ext2<Inner, A, B> where
    A: RefUnwindSafe,
    B: RefUnwindSafe,
    Inner: RefUnwindSafe

impl<Inner, A, B> Send for Ext2<Inner, A, B> where
    A: Send,
    B: Send,
    Inner: Send

impl<Inner, A, B> Sync for Ext2<Inner, A, B> where
    A: Sync,
    B: Sync,
    Inner: Sync

impl<Inner, A, B> Unpin for Ext2<Inner, A, B> where
    A: Unpin,
    B: Unpin,
    Inner: Unpin

impl<Inner, A, B> UnwindSafe for Ext2<Inner, A, B> where
    A: UnwindSafe,
    B: 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.