pub struct UpdateEntitlementsFeature { /* private fields */ }Expand description
Update a feature’s metadata or permanently deactivate it.
Implementations§
Source§impl UpdateEntitlementsFeature
impl UpdateEntitlementsFeature
Sourcepub fn new(id: impl Into<EntitlementsFeatureId>) -> Self
pub fn new(id: impl Into<EntitlementsFeatureId>) -> Self
Construct a new UpdateEntitlementsFeature.
Sourcepub fn active(self, active: impl Into<bool>) -> Self
pub fn active(self, active: impl Into<bool>) -> Self
Inactive features cannot be attached to new products and will not be returned from the features list endpoint.
Sourcepub fn expand(self, expand: impl Into<Vec<String>>) -> Self
pub fn expand(self, expand: impl Into<Vec<String>>) -> Self
Specifies which fields in the response should be expanded.
Source§impl UpdateEntitlementsFeature
impl UpdateEntitlementsFeature
Sourcepub async fn send<C: StripeClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub async fn send<C: StripeClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response.
Sourcepub fn send_blocking<C: StripeBlockingClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub fn send_blocking<C: StripeBlockingClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response, blocking until completion.
Trait Implementations§
Source§impl Clone for UpdateEntitlementsFeature
impl Clone for UpdateEntitlementsFeature
Source§fn clone(&self) -> UpdateEntitlementsFeature
fn clone(&self) -> UpdateEntitlementsFeature
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 UpdateEntitlementsFeature
impl Debug for UpdateEntitlementsFeature
Source§impl StripeRequest for UpdateEntitlementsFeature
impl StripeRequest for UpdateEntitlementsFeature
Source§type Output = EntitlementsFeature
type Output = EntitlementsFeature
The data returned from the eventual API call.
Source§fn build(&self) -> RequestBuilder
fn build(&self) -> RequestBuilder
Convert the struct into library-agnostic data that can be used by compatible
clients to make API calls.
Source§fn customize(&self) -> CustomizableStripeRequest<Self::Output>
fn customize(&self) -> CustomizableStripeRequest<Self::Output>
Convert to a builder allowing per-request customization.
Auto Trait Implementations§
impl Freeze for UpdateEntitlementsFeature
impl RefUnwindSafe for UpdateEntitlementsFeature
impl Send for UpdateEntitlementsFeature
impl Sync for UpdateEntitlementsFeature
impl Unpin for UpdateEntitlementsFeature
impl UnwindSafe for UpdateEntitlementsFeature
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