[−][src]Trait activitystreams::object::ProfileExt
Helper methods for interacting with Profile types
This trait represents methods valid for any Profile.
Documentation for the fields related to these methods can be found on the Profile
struct
Provided methods
fn describes(&self) -> Option<&AnyBase>
Fetch the described object for the current object
use activitystreams::prelude::*; if let Some(describes) = profile.describes() { println!("{:?}", describes); }
fn set_describes<T>(&mut self, describes: T) -> &mut Self where
T: Into<AnyBase>,
T: Into<AnyBase>,
Set the described object for the current object
This overwrites the contents of describes
use activitystreams::prelude::*; profile.set_describes(uri!("https://example.com"));
fn take_describes(&mut self) -> Option<AnyBase>
Take the described object from the current object, leaving nothing
use activitystreams::prelude::*; if let Some(describes) = profile.take_describes() { println!("{:?}", describes); }
fn delete_describes(&mut self) -> &mut Self
Delete the described object from the current object
use activitystreams::prelude::*; assert!(profile.describes().is_some()); profile.delete_describes(); assert!(profile.describes().is_none());