pub struct UpdateSubscription { /* private fields */ }Expand description
トライアル期間を新たに設定したり、プランの変更を行うことができます。.
Implementations§
Source§impl UpdateSubscription
impl UpdateSubscription
pub fn metadata(self, metadata: impl Into<Metadata>) -> Self
Sourcepub fn next_cycle_plan(self, next_cycle_plan: impl Into<String>) -> Self
pub fn next_cycle_plan(self, next_cycle_plan: impl Into<String>) -> Self
次回サイクル更新時に指定のプランへと自動的に切り替えを行い課金を試みます。.
Sourcepub fn trial_end(self, trial_end: impl Into<UpdateSubscriptionTrialEnd>) -> Self
pub fn trial_end(self, trial_end: impl Into<UpdateSubscriptionTrialEnd>) -> Self
リクエスト時より未来のタイムスタンプ(5年後まで) or 文字列 now が指定可能です。.
Source§impl UpdateSubscription
impl UpdateSubscription
Sourcepub async fn send<C: PayjpClient>(
&self,
client: &C,
) -> Result<<Self as PayjpRequest>::Output, C::Err>
pub async fn send<C: PayjpClient>( &self, client: &C, ) -> Result<<Self as PayjpRequest>::Output, C::Err>
Send the request and return the deserialized response.
Sourcepub fn send_blocking<C: BlockingClient>(
&self,
client: &C,
) -> Result<<Self as PayjpRequest>::Output, C::Err>
pub fn send_blocking<C: BlockingClient>( &self, client: &C, ) -> Result<<Self as PayjpRequest>::Output, C::Err>
Send the request and return the deserialized response, blocking until completion.
Trait Implementations§
Source§impl Clone for UpdateSubscription
impl Clone for UpdateSubscription
Source§fn clone(&self) -> UpdateSubscription
fn clone(&self) -> UpdateSubscription
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 UpdateSubscription
impl Debug for UpdateSubscription
Source§impl PayjpRequest for UpdateSubscription
impl PayjpRequest for UpdateSubscription
Source§type Output = Subscription
type Output = Subscription
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) -> CustomizablePayjpRequest<Self::Output>
fn customize(&self) -> CustomizablePayjpRequest<Self::Output>
Convert to a builder allowing per-request customization.
Auto Trait Implementations§
impl Freeze for UpdateSubscription
impl RefUnwindSafe for UpdateSubscription
impl Send for UpdateSubscription
impl Sync for UpdateSubscription
impl Unpin for UpdateSubscription
impl UnwindSafe for UpdateSubscription
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