pub struct ProfileProperties {
pub describes: Value,
}Expand description
Define all the properties of the Profile type as described by the Activity Streams vocabulary.
Fields§
§describes: ValueOn a Profile object, the describes property identifies the object described by the
Profile.
- Range:
Object - Functional: true
Implementations§
Source§impl ProfileProperties
impl ProfileProperties
Sourcepub fn describes_object<T: Object>(&self) -> Result<T>
pub fn describes_object<T: Object>(&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::Deserialize
Sourcepub fn set_describes_object<T: Object>(&mut self, item: T) -> Result<()>
pub fn set_describes_object<T: Object>(&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
Sourcepub fn describes_string(&self) -> Result<String>
pub fn describes_string(&self) -> Result<String>
Retrieve a value 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::Deserialize
Sourcepub fn set_describes_string(&mut self, item: String) -> Result<()>
pub fn set_describes_string(&mut self, item: String) -> Result<()>
Set a value 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§
Source§impl Clone for ProfileProperties
impl Clone for ProfileProperties
Source§fn clone(&self) -> ProfileProperties
fn clone(&self) -> ProfileProperties
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more