Struct simple_request::Request
source · pub struct Request(/* private fields */);
Implementations§
source§impl Request
impl Request
pub fn basic_auth(&mut self, username: &str, password: &str)
Available on crate feature
basic-auth
only.pub fn basic_auth_from_uri(&mut self) -> Result<(), Error>
Available on crate feature
basic-auth
only.pub fn with_basic_auth(&mut self)
Available on crate feature
basic-auth
only.Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Request
impl !RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl !UnwindSafe for Request
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