pub struct AllocationsItemStructBuilder<'a> { /* private fields */ }Expand description
Builder for AllocationsItemStruct.
Implementations§
Source§impl<'a> AllocationsItemStructBuilder<'a>
impl<'a> AllocationsItemStructBuilder<'a>
Sourcepub fn consumer_generation<VALUE: Into<i32>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn consumer_generation<VALUE: Into<i32>>( &mut self, value: VALUE, ) -> &mut Self
The generation of the consumer. Should be set to null when indicating that the caller expects the consumer does not yet exist.
Sourcepub fn project_id<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn project_id<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The uuid of a project.
Sourcepub fn user_id<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn user_id<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The uuid of a user.
Sourcepub fn build(
&self,
) -> Result<AllocationsItemStruct<'a>, AllocationsItemStructBuilderError>
pub fn build( &self, ) -> Result<AllocationsItemStruct<'a>, AllocationsItemStructBuilderError>
Source§impl<'a> AllocationsItemStructBuilder<'a>
impl<'a> AllocationsItemStructBuilder<'a>
Sourcepub fn allocations<I, K, V>(&mut self, iter: I) -> &mut Self
pub fn allocations<I, K, V>(&mut self, iter: I) -> &mut Self
A dictionary of resource allocations keyed by resource provider uuid. If this is an empty object, allocations for this consumer will be removed.
Sourcepub fn mappings<I, K, V, V1>(&mut self, iter: I) -> &mut Self
pub fn mappings<I, K, V, V1>(&mut self, iter: I) -> &mut Self
A dictionary associating request group suffixes with a list of uuids identifying the resource providers that satisfied each group. The empty string and [a-zA-Z0-9_-]+ are valid suffixes. This field may be sent when writing allocations back to the server but will be ignored; this preserves symmetry between read and write representations.
Trait Implementations§
Source§impl<'a> Clone for AllocationsItemStructBuilder<'a>
impl<'a> Clone for AllocationsItemStructBuilder<'a>
Source§fn clone(&self) -> AllocationsItemStructBuilder<'a>
fn clone(&self) -> AllocationsItemStructBuilder<'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 AllocationsItemStructBuilder<'a>
impl<'a> RefUnwindSafe for AllocationsItemStructBuilder<'a>
impl<'a> Send for AllocationsItemStructBuilder<'a>
impl<'a> Sync for AllocationsItemStructBuilder<'a>
impl<'a> Unpin for AllocationsItemStructBuilder<'a>
impl<'a> UnwindSafe for AllocationsItemStructBuilder<'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§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