pub struct Hub { /* private fields */ }
Expand description
A subscription endpoint which can be used to receive feed update notifications.
§Valid Hub
A Hub
must have both the type
and url
properties set.
Implementations§
Source§impl Hub
impl Hub
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 into_inner(self) -> Map<String, Value>
pub fn into_inner(self) -> Map<String, Value>
Converts the type into the inner Map
.
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§
Source§impl<'de> Deserialize<'de> for Hub
impl<'de> Deserialize<'de> for Hub
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Hub
Auto Trait Implementations§
impl Freeze for Hub
impl RefUnwindSafe for Hub
impl Send for Hub
impl Sync for Hub
impl Unpin for Hub
impl UnwindSafe for Hub
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