Struct squareup::models::InvoiceCustomField
source · pub struct InvoiceCustomField {
pub label: String,
pub value: Option<String>,
pub placement: InvoiceCustomFieldPlacement,
}Expand description
An additional seller-defined and customer-facing field to include on the invoice.
For more information, see Custom fields.
Adding custom fields to an invoice requires an Invoices Plus subscription.
Fields§
§label: StringThe label or title of the custom field. This field is required for a custom field. Max Length 30
value: Option<String>The text of the custom field. If omitted, only the label is rendered. Max Length 2000
placement: InvoiceCustomFieldPlacementThe location of the custom field on the invoice. This field is required for a custom field.
Trait Implementations§
source§impl Clone for InvoiceCustomField
impl Clone for InvoiceCustomField
source§fn clone(&self) -> InvoiceCustomField
fn clone(&self) -> InvoiceCustomField
Returns a copy 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 InvoiceCustomField
impl Debug for InvoiceCustomField
source§impl Default for InvoiceCustomField
impl Default for InvoiceCustomField
source§fn default() -> InvoiceCustomField
fn default() -> InvoiceCustomField
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InvoiceCustomField
impl<'de> Deserialize<'de> for InvoiceCustomField
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for InvoiceCustomField
impl PartialEq for InvoiceCustomField
source§fn eq(&self, other: &InvoiceCustomField) -> bool
fn eq(&self, other: &InvoiceCustomField) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for InvoiceCustomField
impl Serialize for InvoiceCustomField
impl Eq for InvoiceCustomField
impl StructuralPartialEq for InvoiceCustomField
Auto Trait Implementations§
impl RefUnwindSafe for InvoiceCustomField
impl Send for InvoiceCustomField
impl Sync for InvoiceCustomField
impl Unpin for InvoiceCustomField
impl UnwindSafe for InvoiceCustomField
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.