pub struct RequestBuilder<'a> { /* private fields */ }Expand description
Builder for Request.
Implementations§
Source§impl<'a> RequestBuilder<'a>
impl<'a> RequestBuilder<'a>
Sourcepub fn address_scope_id<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn address_scope_id<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
address_scope_id query parameter for /v2.0/subnetpools API
Sourcepub fn default_prefixlen(&mut self, value: i32) -> &mut Self
pub fn default_prefixlen(&mut self, value: i32) -> &mut Self
default_prefixlen query parameter for /v2.0/subnetpools API
Sourcepub fn default_quota(&mut self, value: i32) -> &mut Self
pub fn default_quota(&mut self, value: i32) -> &mut Self
default_quota query parameter for /v2.0/subnetpools API
Sourcepub fn description<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn description<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
description query parameter for /v2.0/subnetpools API
Sourcepub fn id<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn id<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
id query parameter for /v2.0/subnetpools API
Sourcepub fn ip_version<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn ip_version<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
ip_version query parameter for /v2.0/subnetpools API
Sourcepub fn is_default(&mut self, value: bool) -> &mut Self
pub fn is_default(&mut self, value: bool) -> &mut Self
is_default query parameter for /v2.0/subnetpools API
Sourcepub fn limit(&mut self, value: i32) -> &mut Self
pub fn limit(&mut self, value: i32) -> &mut Self
Requests a page size of items. Returns a number of items up to a limit value. Use the limit parameter to make an initial limited request and use the ID of the last-seen item from the response as the marker parameter value in a subsequent limited request.
Sourcepub fn marker<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn marker<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The ID of the last-seen item. Use the limit parameter to make an initial limited request and use the ID of the last-seen item from the response as the marker parameter value in a subsequent limited request.
Sourcepub fn max_prefixlen(&mut self, value: i32) -> &mut Self
pub fn max_prefixlen(&mut self, value: i32) -> &mut Self
max_prefixlen query parameter for /v2.0/subnetpools API
Sourcepub fn min_prefixlen(&mut self, value: i32) -> &mut Self
pub fn min_prefixlen(&mut self, value: i32) -> &mut Self
min_prefixlen query parameter for /v2.0/subnetpools API
Sourcepub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
name query parameter for /v2.0/subnetpools API
Sourcepub fn page_reverse(&mut self, value: bool) -> &mut Self
pub fn page_reverse(&mut self, value: bool) -> &mut Self
Reverse the page direction
Sourcepub fn revision_number<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn revision_number<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
revision_number query parameter for /v2.0/subnetpools API
shared query parameter for /v2.0/subnetpools API
Source§impl<'a> RequestBuilder<'a>
impl<'a> RequestBuilder<'a>
tags query parameter for /v2.0/subnetpools API
tags-any query parameter for /v2.0/subnetpools API
not-tags query parameter for /v2.0/subnetpools API
not-tags-any query parameter for /v2.0/subnetpools API
Sourcepub fn sort_key<I, T>(&mut self, iter: I) -> &mut Self
pub fn sort_key<I, T>(&mut self, iter: I) -> &mut Self
Sort results by the attribute. This is an optional feature and may be silently ignored by the server.
Sourcepub fn sort_dir<I, T>(&mut self, iter: I) -> &mut Self
pub fn sort_dir<I, T>(&mut self, iter: I) -> &mut Self
Sort direction. This is an optional feature and may be silently ignored by the server.
Sourcepub fn header(
&mut self,
header_name: &'static str,
header_value: &'static str,
) -> &mut Self
pub fn header( &mut self, header_name: &'static str, header_value: &'static str, ) -> &mut Self
Add a single header to the Subnetpool.
Trait Implementations§
Source§impl<'a> Clone for RequestBuilder<'a>
impl<'a> Clone for RequestBuilder<'a>
Source§fn clone(&self) -> RequestBuilder<'a>
fn clone(&self) -> RequestBuilder<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for RequestBuilder<'a>
impl<'a> RefUnwindSafe for RequestBuilder<'a>
impl<'a> Send for RequestBuilder<'a>
impl<'a> Sync for RequestBuilder<'a>
impl<'a> Unpin for RequestBuilder<'a>
impl<'a> UnwindSafe for RequestBuilder<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more