Struct square_api_client::models::PublishInvoiceRequest
source · [−]Expand description
This is a model struct for PublishInvoiceRequest type.
Fields
version: i32
The version of the [Invoice] to publish. This must match the current version of the invoice; otherwise, the request is rejected.
idempotency_key: Option<String>
A unique string that identifies the PublishInvoice
request. If you do not provide
idempotency_key
(or provide an empty string as the value), the endpoint treats each
request as independent.
For more information, see Idempotency.
Trait Implementations
sourceimpl Clone for PublishInvoiceRequest
impl Clone for PublishInvoiceRequest
sourcefn clone(&self) -> PublishInvoiceRequest
fn clone(&self) -> PublishInvoiceRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PublishInvoiceRequest
impl Debug for PublishInvoiceRequest
sourceimpl Default for PublishInvoiceRequest
impl Default for PublishInvoiceRequest
sourcefn default() -> PublishInvoiceRequest
fn default() -> PublishInvoiceRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<PublishInvoiceRequest> for PublishInvoiceRequest
impl PartialEq<PublishInvoiceRequest> for PublishInvoiceRequest
sourcefn eq(&self, other: &PublishInvoiceRequest) -> bool
fn eq(&self, other: &PublishInvoiceRequest) -> bool
sourceimpl Serialize for PublishInvoiceRequest
impl Serialize for PublishInvoiceRequest
impl Eq for PublishInvoiceRequest
impl StructuralEq for PublishInvoiceRequest
impl StructuralPartialEq for PublishInvoiceRequest
Auto Trait Implementations
impl RefUnwindSafe for PublishInvoiceRequest
impl Send for PublishInvoiceRequest
impl Sync for PublishInvoiceRequest
impl Unpin for PublishInvoiceRequest
impl UnwindSafe for PublishInvoiceRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.