[−][src]Struct voucherify_rs::voucher::update::VoucherUpdateRequest
Methods
impl VoucherUpdateRequest
[src]
pub fn new(
request: VoucherifyRequest,
voucher_id: &str,
app_url: String
) -> VoucherUpdateRequest
[src]
request: VoucherifyRequest,
voucher_id: &str,
app_url: String
) -> VoucherUpdateRequest
pub fn category(&mut self, category: &str) -> &mut VoucherUpdateRequest
[src]
pub fn start_date(&mut self, start_date: &str) -> &mut VoucherUpdateRequest
[src]
pub fn expiration_date(
&mut self,
expiration_date: &str
) -> &mut VoucherUpdateRequest
[src]
&mut self,
expiration_date: &str
) -> &mut VoucherUpdateRequest
pub fn active(&mut self, active: bool) -> &mut VoucherUpdateRequest
[src]
pub fn additional_info(
&mut self,
additional_info: String
) -> &mut VoucherUpdateRequest
[src]
&mut self,
additional_info: String
) -> &mut VoucherUpdateRequest
pub fn metadata(
&mut self,
metadata: BTreeMap<String, Value>
) -> &mut VoucherUpdateRequest
[src]
&mut self,
metadata: BTreeMap<String, Value>
) -> &mut VoucherUpdateRequest
pub fn gift_amount(&mut self, amount: usize) -> &mut VoucherUpdateRequest
[src]
pub fn send(&mut self) -> Result<Voucher, VoucherifyError>
[src]
Auto Trait Implementations
impl !Sync for VoucherUpdateRequest
impl Unpin for VoucherUpdateRequest
impl Send for VoucherUpdateRequest
impl !UnwindSafe for VoucherUpdateRequest
impl !RefUnwindSafe for VoucherUpdateRequest
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,