[][src]Struct activitystreams_new::collection::CollectionPage

pub struct CollectionPage<Kind> { /* fields omitted */ }

Used to represent distinct subsets of items from a Collection.

A Collection can contain a large number of items. Often, it becomes impractical for an implementation to serialize every item contained by a Collection using the items (or ordered_items) property alone. In such cases, the items within a Collection can be divided into distinct subsets or "pages". A page is identified using the CollectionPage type.

Methods

impl<Kind> CollectionPage<Kind>[src]

pub fn new<T>(items: T) -> Self where
    T: Into<OneOrMany<AnyBase>>,
    Kind: Default
[src]

Create a new CollectionPage

use activitystreams_new::collection::CollectionPage;

let collection = CollectionPage::<String>::new(vec![]);

Trait Implementations

impl<Kind> AsBase<Kind> for CollectionPage<Kind>[src]

impl<Kind> AsCollection<Kind> for CollectionPage<Kind>[src]

impl<Kind> AsCollectionPage<Kind> for CollectionPage<Kind>[src]

impl<Kind> AsObject<Kind> for CollectionPage<Kind>[src]

impl<Kind> Base for CollectionPage<Kind>[src]

impl<Kind: Clone> Clone for CollectionPage<Kind>[src]

impl<Kind> Collection for CollectionPage<Kind>[src]

impl<Kind> CollectionPage for CollectionPage<Kind>[src]

impl<Kind: Debug> Debug for CollectionPage<Kind>[src]

impl<'de, Kind> Deserialize<'de> for CollectionPage<Kind> where
    Kind: Deserialize<'de>, 
[src]

impl<Kind> Extends<Kind> for CollectionPage<Kind>[src]

type Error = Error

The erro produced must be a StdError

impl<Kind> Object for CollectionPage<Kind>[src]

impl<Kind> Serialize for CollectionPage<Kind> where
    Kind: Serialize
[src]

impl<Kind> TryFrom<CollectionPage<Kind>> for Object<Kind>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<Kind> TryFrom<Object<Kind>> for CollectionPage<Kind>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<Kind> UnparsedMut for CollectionPage<Kind>[src]

Auto Trait Implementations

impl<Kind> RefUnwindSafe for CollectionPage<Kind> where
    Kind: RefUnwindSafe

impl<Kind> Send for CollectionPage<Kind> where
    Kind: Send

impl<Kind> Sync for CollectionPage<Kind> where
    Kind: Sync

impl<Kind> Unpin for CollectionPage<Kind> where
    Kind: Unpin

impl<Kind> UnwindSafe for CollectionPage<Kind> where
    Kind: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[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> 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.

impl<T> UnparsedMutExt for T where
    T: UnparsedMut
[src]