#[non_exhaustive]pub struct AddAttachmentsToSetInput {
pub attachment_set_id: Option<String>,
pub attachments: Option<Vec<Attachment>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.attachment_set_id: Option<String>
The ID of the attachment set. If an attachmentSetId
is not specified, a new attachment set is created, and the ID of the set is returned in the response. If an attachmentSetId
is specified, the attachments are added to the specified set, if it exists.
attachments: Option<Vec<Attachment>>
One or more attachments to add to the set. You can add up to three attachments per set. The size limit is 5 MB per attachment.
In the Attachment
object, use the data
parameter to specify the contents of the attachment file. In the previous request syntax, the value for data
appear as blob
, which is represented as a base64-encoded string. The value for fileName
is the name of the attachment, such as troubleshoot-screenshot.png
.
Implementations§
source§impl AddAttachmentsToSetInput
impl AddAttachmentsToSetInput
sourcepub fn attachment_set_id(&self) -> Option<&str>
pub fn attachment_set_id(&self) -> Option<&str>
The ID of the attachment set. If an attachmentSetId
is not specified, a new attachment set is created, and the ID of the set is returned in the response. If an attachmentSetId
is specified, the attachments are added to the specified set, if it exists.
sourcepub fn attachments(&self) -> &[Attachment]
pub fn attachments(&self) -> &[Attachment]
One or more attachments to add to the set. You can add up to three attachments per set. The size limit is 5 MB per attachment.
In the Attachment
object, use the data
parameter to specify the contents of the attachment file. In the previous request syntax, the value for data
appear as blob
, which is represented as a base64-encoded string. The value for fileName
is the name of the attachment, such as troubleshoot-screenshot.png
.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .attachments.is_none()
.
source§impl AddAttachmentsToSetInput
impl AddAttachmentsToSetInput
sourcepub fn builder() -> AddAttachmentsToSetInputBuilder
pub fn builder() -> AddAttachmentsToSetInputBuilder
Creates a new builder-style object to manufacture AddAttachmentsToSetInput
.
Trait Implementations§
source§impl Clone for AddAttachmentsToSetInput
impl Clone for AddAttachmentsToSetInput
source§fn clone(&self) -> AddAttachmentsToSetInput
fn clone(&self) -> AddAttachmentsToSetInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AddAttachmentsToSetInput
impl Debug for AddAttachmentsToSetInput
source§impl PartialEq for AddAttachmentsToSetInput
impl PartialEq for AddAttachmentsToSetInput
source§fn eq(&self, other: &AddAttachmentsToSetInput) -> bool
fn eq(&self, other: &AddAttachmentsToSetInput) -> bool
self
and other
values to be equal, and is used
by ==
.