pub struct LegacyIdMappingBuilder {
type_: Option<LegacyMappingType>,
ids: Option<Vec<u32>>,
/* private fields */
}
Expand description
Builder for LegacyIdMapping
.
Fields§
§type_: Option<LegacyMappingType>
§ids: Option<Vec<u32>>
Implementations§
Source§impl LegacyIdMappingBuilder
impl LegacyIdMappingBuilder
pub fn map_type<VALUE: Into<LegacyMappingType>>( &mut self, value: VALUE, ) -> &mut Self
pub fn ids<VALUE: Into<Vec<u32>>>(&mut self, value: VALUE) -> &mut Self
pub fn add_id<VALUE>(&mut self, item: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<LegacyIdMapping, BuilderError>
pub fn build(&self) -> Result<LegacyIdMapping, BuilderError>
Sourcefn create_empty() -> Self
fn create_empty() -> Self
Create an empty builder, with all fields set to None
or PhantomData
.
Source§impl LegacyIdMappingBuilder
impl LegacyIdMappingBuilder
pub async fn send(&self) -> IdMappingListResponse
Trait Implementations§
Source§impl Clone for LegacyIdMappingBuilder
impl Clone for LegacyIdMappingBuilder
Source§fn clone(&self) -> LegacyIdMappingBuilder
fn clone(&self) -> LegacyIdMappingBuilder
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 Freeze for LegacyIdMappingBuilder
impl !RefUnwindSafe for LegacyIdMappingBuilder
impl !Send for LegacyIdMappingBuilder
impl !Sync for LegacyIdMappingBuilder
impl Unpin for LegacyIdMappingBuilder
impl !UnwindSafe for LegacyIdMappingBuilder
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