pub struct GenerateRandomBytesRequestBuilder { /* private fields */ }
Expand description
Builder for GenerateRandomBytesRequest
.
Implementations§
source§impl GenerateRandomBytesRequestBuilder
impl GenerateRandomBytesRequestBuilder
pub fn mount<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
sourcepub fn bytes<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn bytes<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
Specifies the number of bytes to return. Default is 32.
sourcepub fn format<VALUE: Into<OutputFormat>>(&mut self, value: VALUE) -> &mut Self
pub fn format<VALUE: Into<OutputFormat>>(&mut self, value: VALUE) -> &mut Self
Specifies the output encoding.
sourcepub fn source<VALUE: Into<RandomBytesSource>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn source<VALUE: Into<RandomBytesSource>>( &mut self, value: VALUE, ) -> &mut Self
Specifies the source of the requested bytes.
sourcepub fn build(
&self,
) -> Result<GenerateRandomBytesRequest, GenerateRandomBytesRequestBuilderError>
pub fn build( &self, ) -> Result<GenerateRandomBytesRequest, GenerateRandomBytesRequestBuilderError>
Trait Implementations§
source§impl Clone for GenerateRandomBytesRequestBuilder
impl Clone for GenerateRandomBytesRequestBuilder
source§fn clone(&self) -> GenerateRandomBytesRequestBuilder
fn clone(&self) -> GenerateRandomBytesRequestBuilder
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 GenerateRandomBytesRequestBuilder
impl RefUnwindSafe for GenerateRandomBytesRequestBuilder
impl Send for GenerateRandomBytesRequestBuilder
impl Sync for GenerateRandomBytesRequestBuilder
impl Unpin for GenerateRandomBytesRequestBuilder
impl UnwindSafe for GenerateRandomBytesRequestBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)