Struct json_feed_model::HubMut
source · [−]pub struct HubMut<'a> { /* private fields */ }
Expand description
A Hub
implemented with a borrowed mutable reference to a JSON object.
Implementations
sourceimpl<'a> HubMut<'a>
impl<'a> HubMut<'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.
sourcepub fn hub_type(&self) -> Result<Option<&str>, Error>
pub fn hub_type(&self) -> Result<Option<&str>, Error>
The required protocol which is used to subscribe with.
sourcepub fn set_hub_type<T>(&mut self, value: T) -> Option<Value> where
T: ToString,
pub fn set_hub_type<T>(&mut self, value: T) -> Option<Value> where
T: ToString,
Sets the type.
sourcepub fn remove_hub_type(&mut self) -> Option<Value>
pub fn remove_hub_type(&mut self) -> Option<Value>
Removes the type.
sourcepub fn url(&self) -> Result<Option<&str>, Error>
pub fn url(&self) -> Result<Option<&str>, Error>
A required hub type specific URL which is used to subscribe with.
sourcepub fn remove_url(&mut self) -> Option<Value>
pub fn remove_url(&mut self) -> Option<Value>
Removes the URL.
Trait Implementations
impl<'a> Eq for HubMut<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for HubMut<'a>
impl<'a> Send for HubMut<'a>
impl<'a> Sync for HubMut<'a>
impl<'a> Unpin for HubMut<'a>
impl<'a> !UnwindSafe for HubMut<'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