pub struct UpdateSubscriptionRequest {
pub name: Option<String>,
pub payment_method_id: Option<u32>,
pub memory_storage: Option<String>,
}
Expand description
Update subscription request
§Examples
use redis_cloud::UpdateSubscriptionRequest;
let request = UpdateSubscriptionRequest::builder()
.name("production-updated")
.payment_method_id(54321)
.build();
Fields§
§name: Option<String>
§payment_method_id: Option<u32>
§memory_storage: Option<String>
Implementations§
Source§impl UpdateSubscriptionRequest
impl UpdateSubscriptionRequest
Sourcepub fn builder() -> UpdateSubscriptionRequestBuilder<((), (), ())>
pub fn builder() -> UpdateSubscriptionRequestBuilder<((), (), ())>
Create a builder for building UpdateSubscriptionRequest
.
On the builder, call .name(...)
(optional), .payment_method_id(...)
(optional), .memory_storage(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of UpdateSubscriptionRequest
.
Trait Implementations§
Source§impl Debug for UpdateSubscriptionRequest
impl Debug for UpdateSubscriptionRequest
Auto Trait Implementations§
impl Freeze for UpdateSubscriptionRequest
impl RefUnwindSafe for UpdateSubscriptionRequest
impl Send for UpdateSubscriptionRequest
impl Sync for UpdateSubscriptionRequest
impl Unpin for UpdateSubscriptionRequest
impl UnwindSafe for UpdateSubscriptionRequest
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