Struct openstack_sdk::api::image::v2::metadef::namespace::object::set::PropertiesBuilder
source · pub struct PropertiesBuilder<'a> { /* private fields */ }Expand description
Builder for Properties.
Implementations§
source§impl<'a> PropertiesBuilder<'a>
impl<'a> PropertiesBuilder<'a>
pub fn additional_items(&mut self, value: bool) -> &mut Self
pub fn _default<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self
pub fn description<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn _enum<VALUE: Into<Vec<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn items<VALUE: Into<Items<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn maximum(&mut self, value: f32) -> &mut Self
pub fn max_items(&mut self, value: i32) -> &mut Self
pub fn max_length(&mut self, value: i32) -> &mut Self
pub fn minimum(&mut self, value: f32) -> &mut Self
pub fn min_items(&mut self, value: i32) -> &mut Self
pub fn min_length(&mut self, value: i32) -> &mut Self
pub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn operators<VALUE: Into<Vec<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn pattern<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn readonly(&mut self, value: bool) -> &mut Self
sourcepub fn required<VALUE: Into<Vec<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn required<VALUE: Into<Vec<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
A list of the names of properties that are required on this object.
pub fn title<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn _type(&mut self, value: Type) -> &mut Self
pub fn unique_items(&mut self, value: bool) -> &mut Self
sourcepub fn build(&self) -> Result<Properties<'a>, PropertiesBuilderError>
pub fn build(&self) -> Result<Properties<'a>, PropertiesBuilderError>
Trait Implementations§
source§impl<'a> Clone for PropertiesBuilder<'a>
impl<'a> Clone for PropertiesBuilder<'a>
source§fn clone(&self) -> PropertiesBuilder<'a>
fn clone(&self) -> PropertiesBuilder<'a>
Returns a copy 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 PropertiesBuilder<'a>
impl<'a> RefUnwindSafe for PropertiesBuilder<'a>
impl<'a> Send for PropertiesBuilder<'a>
impl<'a> Sync for PropertiesBuilder<'a>
impl<'a> Unpin for PropertiesBuilder<'a>
impl<'a> UnwindSafe for PropertiesBuilder<'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
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)
🔬This is a nightly-only experimental API. (
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>
Converts
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>
Converts
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