pub struct QueryHttpOptsBuilder<'a> { /* private fields */ }
Expand description
Builder for QueryHttpOpts
.
Implementations§
Source§impl<'a> QueryHttpOptsBuilder<'a>
impl<'a> QueryHttpOptsBuilder<'a>
Sourcepub fn auth_header<VALUE: Into<SecretId>>(&mut self, value: VALUE) -> &mut Self
pub fn auth_header<VALUE: Into<SecretId>>(&mut self, value: VALUE) -> &mut Self
Secret used to populate the Authorization HTTP header
Sourcepub fn experimental_service_host<VALUE: Into<ServiceId>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn experimental_service_host<VALUE: Into<ServiceId>>( &mut self, value: VALUE, ) -> &mut Self
A service which must be started before the URL is fetched.
Sourcepub fn name<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
File name to use for the file. Defaults to the last part of the URL.
Sourcepub fn permissions<VALUE: Into<isize>>(&mut self, value: VALUE) -> &mut Self
pub fn permissions<VALUE: Into<isize>>(&mut self, value: VALUE) -> &mut Self
Permissions to set on the file.
Sourcepub fn build(&self) -> Result<QueryHttpOpts<'a>, QueryHttpOptsBuilderError>
pub fn build(&self) -> Result<QueryHttpOpts<'a>, QueryHttpOptsBuilderError>
Trait Implementations§
Source§impl<'a> Clone for QueryHttpOptsBuilder<'a>
impl<'a> Clone for QueryHttpOptsBuilder<'a>
Source§fn clone(&self) -> QueryHttpOptsBuilder<'a>
fn clone(&self) -> QueryHttpOptsBuilder<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for QueryHttpOptsBuilder<'a>
impl<'a> RefUnwindSafe for QueryHttpOptsBuilder<'a>
impl<'a> Send for QueryHttpOptsBuilder<'a>
impl<'a> Sync for QueryHttpOptsBuilder<'a>
impl<'a> Unpin for QueryHttpOptsBuilder<'a>
impl<'a> UnwindSafe for QueryHttpOptsBuilder<'a>
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