[−][src]Struct rustic_hal::resource::HalResource
The HAL Resource structure.
Methods
impl HalResource[src]
impl HalResourcepub fn new<T>(payload: T) -> HalResource where
T: Serialize, [src]
pub fn new<T>(payload: T) -> HalResource where
T: Serialize, pub fn with_link<S, L>(self, name: S, link: L) -> Self where
S: Into<String>,
L: Into<HalLink>, [src]
pub fn with_link<S, L>(self, name: S, link: L) -> Self where
S: Into<String>,
L: Into<HalLink>, pub fn get_link(&self, name: &str) -> Option<&HalLink>[src]
pub fn get_link(&self, name: &str) -> Option<&HalLink>Retrieve one named link if found. Returns the first one if more than one.
pub fn get_self(&self) -> Option<&HalLink>[src]
pub fn get_self(&self) -> Option<&HalLink>Retrieve the self link
pub fn get_links(&self, name: &str) -> Option<&Vec<HalLink>>[src]
pub fn get_links(&self, name: &str) -> Option<&Vec<HalLink>>Retrieve the list of links for a key
pub fn with_resource(self, name: &str, resource: HalResource) -> Self[src]
pub fn with_resource(self, name: &str, resource: HalResource) -> Selfpub fn with_resources(self, name: &str, resources: Vec<HalResource>) -> Self[src]
pub fn with_resources(self, name: &str, resources: Vec<HalResource>) -> Selfpub fn with_curie(self, name: &str, href: &str) -> Self[src]
pub fn with_curie(self, name: &str, href: &str) -> Selfpub fn with_extra_data<V>(self, name: &str, value: V) -> Self where
V: Serialize, [src]
pub fn with_extra_data<V>(self, name: &str, value: V) -> Self where
V: Serialize, pub fn get_extra_data<V>(&self, name: &str) -> HalResult<V> where
V: Deserialize<'de>, [src]
pub fn get_extra_data<V>(&self, name: &str) -> HalResult<V> where
V: Deserialize<'de>, pub fn get_data<V>(&self) -> HalResult<V> where
V: Deserialize<'de>, [src]
pub fn get_data<V>(&self) -> HalResult<V> where
V: Deserialize<'de>, Trait Implementations
impl PartialEq<HalResource> for HalResource[src]
impl PartialEq<HalResource> for HalResourcefn eq(&self, other: &HalResource) -> bool[src]
fn eq(&self, other: &HalResource) -> bool#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Clone for HalResource[src]
impl Clone for HalResourcefn clone(&self) -> HalResource[src]
fn clone(&self) -> HalResourcefn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Serialize for HalResource[src]
impl Serialize for HalResourcefn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, impl<'de> Deserialize<'de> for HalResource[src]
impl<'de> Deserialize<'de> for HalResourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, Auto Trait Implementations
impl Send for HalResource
impl Send for HalResourceimpl Sync for HalResource
impl Sync for HalResourceBlanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T> From for T[src]
impl<T> From for Timpl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,