pub struct HubMut<'a> { /* private fields */ }
Expand description
A Hub
implemented with a borrowed mutable reference to a JSON object.
Implementations§
Source§impl<'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> Freeze for HubMut<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more