pub struct ShallowReference {
pub id: Option<String>,
pub name: Option<String>,
pub url: Option<String>,
}Expand description
An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links.
Fields§
§id: Option<String>ID of the resource
name: Option<String>Name of the linked resource (definition name, controller name, etc.)
url: Option<String>Full http link to the resource
Implementations§
Trait Implementations§
source§impl Clone for ShallowReference
impl Clone for ShallowReference
source§fn clone(&self) -> ShallowReference
fn clone(&self) -> ShallowReference
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ShallowReference
impl Debug for ShallowReference
source§impl Default for ShallowReference
impl Default for ShallowReference
source§fn default() -> ShallowReference
fn default() -> ShallowReference
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ShallowReference
impl<'de> Deserialize<'de> for ShallowReference
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<ShallowReference> for ShallowReference
impl PartialEq<ShallowReference> for ShallowReference
source§fn eq(&self, other: &ShallowReference) -> bool
fn eq(&self, other: &ShallowReference) -> bool
This method tests for
self and other values to be equal, and is used
by ==.