[−][src]Trait activitystreams::collection::OrderedCollectionPageExt
Provided methods
fn start_index(&self) -> Option<u64>
Fetch the start_index of the current object
use activitystreams::prelude::*; if let Some(start_index) = collection.start_index() { println!("{:?}", start_index); }
fn set_start_index<T>(&mut self, start_index: T) -> &mut Self where
T: Into<u64>,
T: Into<u64>,
Set the start_index for the current object
This overwrites the contents of start_index
use activitystreams::prelude::*; collection.set_start_index(5u64);
fn take_start_index(&mut self) -> Option<u64>
Take the start_index of the current object, leaving nothing
use activitystreams::prelude::*; if let Some(start_index) = collection.start_index() { println!("{:?}", start_index); }
fn delete_start_index(&mut self) -> &mut Self
Delete the start_index from the current object
use activitystreams::prelude::*; assert!(collection.start_index().is_some()); collection.delete_start_index(); assert!(collection.start_index().is_none());
Implementors
impl<T> OrderedCollectionPageExt for T where
T: AsOrderedCollectionPage,
[src]
T: AsOrderedCollectionPage,