Struct openstack_sdk::api::image::v2::metadef::namespace::property::create::RequestBuilder
source · pub struct RequestBuilder<'a> { /* private fields */ }Expand description
Builder for Request.
Implementations§
source§impl<'a> RequestBuilder<'a>
impl<'a> RequestBuilder<'a>
sourcepub fn additional_items(&mut self, value: bool) -> &mut Self
pub fn additional_items(&mut self, value: bool) -> &mut Self
Describes extra items, if you use tuple typing. If the value of items
is an array (tuple typing) and the instance is longer than the list of
schemas in items, the additional items are described by the schema in
this property. If this value is false, the instance cannot be longer
than the list of schemas in items. If this value is true, that is
equivalent to the empty schema (anything goes).
pub fn _default<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self
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
Detailed description of the property.
sourcepub fn _enum<VALUE: Into<Vec<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn _enum<VALUE: Into<Vec<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
Enumerated list of property values.
sourcepub fn items<VALUE: Into<Items<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn items<VALUE: Into<Items<'a>>>(&mut self, value: VALUE) -> &mut Self
Schema for the items in an array.
sourcepub fn max_length(&mut self, value: i32) -> &mut Self
pub fn max_length(&mut self, value: i32) -> &mut Self
Maximum allowed string length.
sourcepub fn min_length(&mut self, value: i32) -> &mut Self
pub fn min_length(&mut self, value: i32) -> &mut Self
Minimum allowed string length.
pub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
sourcepub fn operators<VALUE: Into<Vec<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn operators<VALUE: Into<Vec<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
Operators property description.
sourcepub fn pattern<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn pattern<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
A regular expression ( ECMA 262 ) that a string value must match.
sourcepub fn readonly(&mut self, value: bool) -> &mut Self
pub fn readonly(&mut self, value: bool) -> &mut Self
Indicates whether this is a read-only property.
pub fn required<VALUE: Into<Vec<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
sourcepub fn title<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn title<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The title of the property.
sourcepub fn unique_items(&mut self, value: bool) -> &mut Self
pub fn unique_items(&mut self, value: bool) -> &mut Self
Indicates whether all values in the array must be distinct.
source§impl<'a> RequestBuilder<'a>
impl<'a> RequestBuilder<'a>
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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