pub struct CreateImageRequest {
pub create_image_details: CreateImageDetails,
pub opc_retry_token: Option<String>,
}Fields§
§create_image_details: CreateImageDetailsImage creation details
opc_retry_token: Option<String>A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (for example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).
Implementations§
Source§impl CreateImageRequest
impl CreateImageRequest
Sourcepub fn new(required: CreateImageRequestRequired) -> Self
pub fn new(required: CreateImageRequestRequired) -> Self
Create a new CreateImageRequest with required fields
Sourcepub fn set_create_image_details(self, value: CreateImageDetails) -> Self
pub fn set_create_image_details(self, value: CreateImageDetails) -> Self
Set create_image_details
Sourcepub fn set_opc_retry_token(self, value: Option<String>) -> Self
pub fn set_opc_retry_token(self, value: Option<String>) -> Self
Set opc_retry_token
Sourcepub fn with_opc_retry_token(self, value: impl Into<String>) -> Self
pub fn with_opc_retry_token(self, value: impl Into<String>) -> Self
Set opc_retry_token (unwraps Option)
Trait Implementations§
Source§impl Clone for CreateImageRequest
impl Clone for CreateImageRequest
Source§fn clone(&self) -> CreateImageRequest
fn clone(&self) -> CreateImageRequest
Returns a duplicate 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 moreSource§impl Debug for CreateImageRequest
impl Debug for CreateImageRequest
Source§impl<'de> Deserialize<'de> for CreateImageRequest
impl<'de> Deserialize<'de> for CreateImageRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CreateImageRequest
impl RefUnwindSafe for CreateImageRequest
impl Send for CreateImageRequest
impl Sync for CreateImageRequest
impl Unpin for CreateImageRequest
impl UnsafeUnpin for CreateImageRequest
impl UnwindSafe for CreateImageRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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