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>(self, key: S, value: V) -> Resource where V: ToHalState, S: Into<String>
fn add_link<S>(self, rel: S, link: Link) -> Resource where S: Into<String>
fn add_curie<S>(self, name: S, href: S) -> Resource where S: Into<String>
fn add_resource<S>(self, rel: S, resource: Resource) -> 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