Struct graph_http::api_impl::ResourceConfig
source · pub struct ResourceConfig {
pub resource_identity: ResourceIdentity,
pub url: Url,
pub resource_identity_id: Option<String>,
}
Expand description
Provides components for storing resource id’s and helps build the current request URL.
Fields§
§resource_identity: ResourceIdentity
§url: Url
§resource_identity_id: Option<String>
Implementations§
source§impl ResourceConfig
impl ResourceConfig
pub fn new( resource_identity: ResourceIdentity, url: Url, resource_identity_id: Option<String> ) -> ResourceConfig
source§impl ResourceConfig
impl ResourceConfig
pub fn resource_identity(&self) -> ResourceIdentity
pub fn extend_path<I: AsRef<str>>(&mut self, path: &[I])
Trait Implementations§
source§impl AsMut<Url> for ResourceConfig
impl AsMut<Url> for ResourceConfig
source§impl AsRef<Url> for ResourceConfig
impl AsRef<Url> for ResourceConfig
source§impl Clone for ResourceConfig
impl Clone for ResourceConfig
source§fn clone(&self) -> ResourceConfig
fn clone(&self) -> ResourceConfig
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 ResourceConfig
impl Debug for ResourceConfig
source§impl PartialEq for ResourceConfig
impl PartialEq for ResourceConfig
source§fn eq(&self, other: &ResourceConfig) -> bool
fn eq(&self, other: &ResourceConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ResourceConfig
impl StructuralEq for ResourceConfig
impl StructuralPartialEq for ResourceConfig
Auto Trait Implementations§
impl RefUnwindSafe for ResourceConfig
impl Send for ResourceConfig
impl Sync for ResourceConfig
impl Unpin for ResourceConfig
impl UnwindSafe for ResourceConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.