Struct hal::resource::Resource
[−]
[src]
pub struct Resource { // some fields omitted }
Methods
impl Resource
[src]
fn new() -> Resource
fn with_self<S>(uri: S) -> Resource where S: Into<String>
fn from_json(json: Json) -> Resource
This feature is still experimental.
fn add_state<S, V>(&mut self, key: S, value: V) -> &mut Resource where V: ToHalState, S: Into<String>
fn add_link<S>(&mut self, rel: S, link: &Link) -> &mut Resource where S: Into<String>
fn add_curie<S>(&mut self, name: S, href: S) -> &mut Resource where S: Into<String>
fn add_resource<S>(&mut self, rel: S, resource: &Resource) -> &mut Resource where S: Into<String>
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