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.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.