#[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 ==.impl StructuralPartialEq for AddAttachmentsToSetInput
Auto Trait Implementations§
impl Freeze for AddAttachmentsToSetInput
impl RefUnwindSafe for AddAttachmentsToSetInput
impl Send for AddAttachmentsToSetInput
impl Sync for AddAttachmentsToSetInput
impl Unpin for AddAttachmentsToSetInput
impl UnwindSafe for AddAttachmentsToSetInput
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more