pub struct Endpoint { /* private fields */ }Expand description
Represents an API endpoint builder.
Implementations§
Source§impl Endpoint
impl Endpoint
Sourcepub fn new(base_url: impl Into<String>, path: impl Into<String>) -> Self
pub fn new(base_url: impl Into<String>, path: impl Into<String>) -> Self
Creates a new Endpoint with the given base URL and path.
Sourcepub fn with_method(self, method: Method) -> Self
pub fn with_method(self, method: Method) -> Self
Sets the HTTP method for the endpoint.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnsafeUnpin for Endpoint
impl UnwindSafe for Endpoint
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