pub struct RedfishEndpoint { /* private fields */ }Expand description
A tagged type representing a Redfish endpoint URL.
Provides convenient conversion methods to build endpoint URLs from ODataId paths.
Implementations§
Source§impl RedfishEndpoint
impl RedfishEndpoint
Sourcepub const fn new(base_url: Url) -> RedfishEndpoint
pub const fn new(base_url: Url) -> RedfishEndpoint
Create a new RedfishEndpoint from a base URL
Sourcepub fn with_path_and_query(&self, path: &str, query: &str) -> Url
pub fn with_path_and_query(&self, path: &str, query: &str) -> Url
Convert a path to a full Redfish endpoint URL with query parameters
Trait Implementations§
Source§impl Clone for RedfishEndpoint
impl Clone for RedfishEndpoint
Source§fn clone(&self) -> RedfishEndpoint
fn clone(&self) -> RedfishEndpoint
Returns a duplicate 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 RedfishEndpoint
impl Debug for RedfishEndpoint
Source§impl From<Url> for RedfishEndpoint
impl From<Url> for RedfishEndpoint
Source§fn from(url: Url) -> RedfishEndpoint
fn from(url: Url) -> RedfishEndpoint
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RedfishEndpoint
impl RefUnwindSafe for RedfishEndpoint
impl Send for RedfishEndpoint
impl Sync for RedfishEndpoint
impl Unpin for RedfishEndpoint
impl UnsafeUnpin for RedfishEndpoint
impl UnwindSafe for RedfishEndpoint
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