Struct activitystreams_types::collection::properties::CollectionPageProperties [−][src]
pub struct CollectionPageProperties {
pub part_of: Option<Value>,
pub next: Option<Value>,
pub prev: Option<Value>,
}The CollectionPage type extends from the base Collection type and inherits all of it's
properties.
Fields
part_of: Option<Value>
Identifies the Collection to which a CollectionPage objects items belong.
Range: Collection | Link
Functional: true
next: Option<Value>
In a paged Collection, indicates the next page of items.
- Range:
CollectionPage|Link - Functional: true
prev: Option<Value>
In a paged Collection, identifies the previous page of items.
- Range:
CollectionPage|Link - Functional: true
Methods
impl CollectionPageProperties[src]
impl CollectionPagePropertiespub fn part_of_link<T: Link>(&self) -> Result<T>[src]
pub fn part_of_link<T: Link>(&self) -> Result<T>Retrieve a value of type T from the given struct
This method deserializes the item from JSON, so be wary of using this a lot.
Possible errors from this method are Error::NotFound and
Error::Deserialize
pub fn set_part_of_link<T: Link>(&mut self, item: T) -> Result<()>[src]
pub fn set_part_of_link<T: Link>(&mut self, item: T) -> Result<()>Set a value of type T in the given struct
This method serializes the item to JSON, so be wary of using this a lot.
Possible errors from this method are Error::Serialize
pub fn part_of_collection<T: Collection>(&self) -> Result<T>[src]
pub fn part_of_collection<T: Collection>(&self) -> Result<T>Retrieve a value of type T from the given struct
This method deserializes the item from JSON, so be wary of using this a lot.
Possible errors from this method are Error::NotFound and
Error::Deserialize
pub fn set_part_of_collection<T: Collection>(&mut self, item: T) -> Result<()>[src]
pub fn set_part_of_collection<T: Collection>(&mut self, item: T) -> Result<()>Set a value of type T in the given struct
This method serializes the item to JSON, so be wary of using this a lot.
Possible errors from this method are Error::Serialize
pub fn next_link<T: Link>(&self) -> Result<T>[src]
pub fn next_link<T: Link>(&self) -> Result<T>Retrieve a value of type T from the given struct
This method deserializes the item from JSON, so be wary of using this a lot.
Possible errors from this method are Error::NotFound and
Error::Deserialize
pub fn set_next_link<T: Link>(&mut self, item: T) -> Result<()>[src]
pub fn set_next_link<T: Link>(&mut self, item: T) -> Result<()>Set a value of type T in the given struct
This method serializes the item to JSON, so be wary of using this a lot.
Possible errors from this method are Error::Serialize
pub fn next_collectionpage<T: CollectionPage>(&self) -> Result<T>[src]
pub fn next_collectionpage<T: CollectionPage>(&self) -> Result<T>Retrieve a value of type T from the given struct
This method deserializes the item from JSON, so be wary of using this a lot.
Possible errors from this method are Error::NotFound and
Error::Deserialize
pub fn set_next_collectionpage<T: CollectionPage>(
&mut self,
item: T
) -> Result<()>[src]
pub fn set_next_collectionpage<T: CollectionPage>(
&mut self,
item: T
) -> Result<()>Set a value of type T in the given struct
This method serializes the item to JSON, so be wary of using this a lot.
Possible errors from this method are Error::Serialize
pub fn prev_link<T: Link>(&self) -> Result<T>[src]
pub fn prev_link<T: Link>(&self) -> Result<T>Retrieve a value of type T from the given struct
This method deserializes the item from JSON, so be wary of using this a lot.
Possible errors from this method are Error::NotFound and
Error::Deserialize
pub fn set_prev_link<T: Link>(&mut self, item: T) -> Result<()>[src]
pub fn set_prev_link<T: Link>(&mut self, item: T) -> Result<()>Set a value of type T in the given struct
This method serializes the item to JSON, so be wary of using this a lot.
Possible errors from this method are Error::Serialize
pub fn prev_collectionpage<T: CollectionPage>(&self) -> Result<T>[src]
pub fn prev_collectionpage<T: CollectionPage>(&self) -> Result<T>Retrieve a value of type T from the given struct
This method deserializes the item from JSON, so be wary of using this a lot.
Possible errors from this method are Error::NotFound and
Error::Deserialize
pub fn set_prev_collectionpage<T: CollectionPage>(
&mut self,
item: T
) -> Result<()>[src]
pub fn set_prev_collectionpage<T: CollectionPage>(
&mut self,
item: T
) -> Result<()>Set a value of type T in the given struct
This method serializes the item to JSON, so be wary of using this a lot.
Possible errors from this method are Error::Serialize
Trait Implementations
impl Clone for CollectionPageProperties[src]
impl Clone for CollectionPagePropertiesfn clone(&self) -> CollectionPageProperties[src]
fn clone(&self) -> CollectionPagePropertiesReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for CollectionPageProperties[src]
impl Debug for CollectionPagePropertiesfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for CollectionPageProperties[src]
impl Default for CollectionPagePropertiesfn default() -> CollectionPageProperties[src]
fn default() -> CollectionPagePropertiesReturns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for CollectionPageProperties
impl Send for CollectionPagePropertiesimpl Sync for CollectionPageProperties
impl Sync for CollectionPageProperties