Struct challonge::attachments::AttachmentCreate [−][src]
pub struct AttachmentCreate { pub asset: Option<Vec<u8>>, pub url: Option<String>, pub description: Option<String>, }
Expand description
A structure for creating an attachment
- At least 1 of the 3 optional parameters must be provided.
- Files up to 25MB are allowed for tournaments hosted by Premier badge Challonge Premier subscribers.
Fields
asset: Option<Vec<u8>>
A file upload (250KB max, no more than 4 attachments per match). If provided, the url parameter will be ignored.
url: Option<String>
A web (http, ftp) link
description: Option<String>
Text to describe the file or URL attachment, or this can simply be standalone text.
Implementations
Creates new AttachmentCreate
structure with default values.
A builder method for $field with Option
type.
A builder method for $field with Option<String>
type.
A builder method for $field with Option<String>
type.