Struct cargonauts::api::raw::Identifier
[−]
[src]
pub struct Identifier { pub resource: &'static str, pub id: String, }
Fields
resource: &'static str
id: String
Methods
impl Identifier
[src]
fn new<T: Resource>(id: &T::Id) -> Identifier
Trait Implementations
impl Clone for Identifier
[src]
fn clone(&self) -> Identifier
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
impl Eq for Identifier
[src]
impl PartialEq for Identifier
[src]
fn eq(&self, __arg_0: &Identifier) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Identifier) -> bool
This method tests for !=
.
impl Debug for Identifier
[src]
impl<'a, T: Resource + 'a> From<&'a T> for Identifier
[src]
fn from(resource: &'a T) -> Identifier
Performs the conversion.
impl<'a, T: RawFetch> From<&'a ResourceObject<T>> for Identifier
[src]
fn from(resource: &'a ResourceObject<T>) -> Identifier
Performs the conversion.
impl Serialize for Identifier
[src]
fn serialize<S: Serializer>(&self, serializer: &mut S) -> Result<(), S::Error>
Serializes this value into this serializer.