Struct json_feed_model::AuthorMut
source · [−]pub struct AuthorMut<'a> { /* private fields */ }
Expand description
An Author
implemented with a borrowed mutable reference to a JSON object.
Implementations
sourceimpl<'a> AuthorMut<'a>
impl<'a> AuthorMut<'a>
sourcepub fn as_map_mut(&mut self) -> &mut Map<String, Value>
pub fn as_map_mut(&mut self) -> &mut Map<String, Value>
Returns the inner Map
as a mutable reference.
Clones the inner Map
reference and returns an owned type.
sourcepub fn remove_name(&mut self) -> Option<Value>
pub fn remove_name(&mut self) -> Option<Value>
Remove the name.
sourcepub fn url(&self) -> Result<Option<&str>, Error>
pub fn url(&self) -> Result<Option<&str>, Error>
An optional URL for a site which represents the author.
sourcepub fn remove_url(&mut self) -> Option<Value>
pub fn remove_url(&mut self) -> Option<Value>
Removes the URL.
sourcepub fn avatar(&self) -> Result<Option<&str>, Error>
pub fn avatar(&self) -> Result<Option<&str>, Error>
An optional URL for an image which represents the author.
sourcepub fn set_avatar<T>(&mut self, value: T) -> Option<Value> where
T: ToString,
pub fn set_avatar<T>(&mut self, value: T) -> Option<Value> where
T: ToString,
Sets the avatar.
sourcepub fn remove_avatar(&mut self) -> Option<Value>
pub fn remove_avatar(&mut self) -> Option<Value>
Removes the avatar.
Trait Implementations
impl<'a> Eq for AuthorMut<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for AuthorMut<'a>
impl<'a> Send for AuthorMut<'a>
impl<'a> Sync for AuthorMut<'a>
impl<'a> Unpin for AuthorMut<'a>
impl<'a> !UnwindSafe for AuthorMut<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more