Struct hal::Resource
[−]
[src]
pub struct Resource { // some fields omitted }
Methods
impl Resource
[src]
fn new() -> Resource
fn with_self(uri: &str) -> Resource
fn from_json(json: Json) -> Resource
This feature is still experimental.
fn add_state<V>(self, key: &str, value: V) -> Resource where V: ToHalState
fn add_link(self, rel: &str, link: Link) -> Resource
fn add_curie(self, name: &str, href: &str) -> Resource
fn add_resource(self, rel: &str, resource: Resource) -> Resource
Trait Implementations
impl Debug for Resource
[src]
impl PartialEq for Resource
[src]
fn eq(&self, __arg_0: &Resource) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Resource) -> bool
This method tests for !=
.
impl Clone for Resource
[src]
fn clone(&self) -> Resource
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more