[−][src]Struct json_feed_model::HubRef
A Hub
implemented with a borrowed reference to a JSON object.
Implementations
impl<'a> HubRef<'a>
[src]
impl<'a> HubRef<'a>
[src]
pub fn to_hub(&self) -> Hub
[src]
Clones the inner Map
reference and returns an owned type.
pub fn hub_type(&self) -> Result<Option<&str>, Error>
[src]
The required protocol which is used to subscribe with.
pub fn url(&self) -> Result<Option<&str>, Error>
[src]
A required hub type specific URL which is used to subscribe with.
impl<'a> HubRef<'a>
[src]
pub fn is_valid(&self, version: &Version<'_>) -> bool
[src]
Verifies if the JSON data complies with a specific Version
of the JSON Feed spec.
Trait Implementations
impl<'a> AsRef<Map<String, Value>> for HubRef<'a>
[src]
impl<'a> Debug for HubRef<'a>
[src]
impl<'a> Eq for HubRef<'a>
[src]
impl<'a> From<&'a Map<String, Value>> for HubRef<'a>
[src]
impl<'a> From<&'a mut Map<String, Value>> for HubRef<'a>
[src]
impl<'a> PartialEq<HubRef<'a>> for HubRef<'a>
[src]
impl<'a> PartialEq<Map<String, Value>> for HubRef<'a>
[src]
fn eq(&self, other: &Map<String, Value>) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> Serialize for HubRef<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for HubRef<'a>
impl<'a> Send for HubRef<'a>
impl<'a> Sync for HubRef<'a>
impl<'a> Unpin for HubRef<'a>
impl<'a> UnwindSafe for HubRef<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,