[][src]Module egg_mode::media::media_types

A collection of convenience functions that return media types accepted by Twitter.

These are convenience types that can be handed to UploadBuilder::new to set the right media type of a piece of media. The functions in the module correspond to media types that Twitter is known to accept.

Note that using image_gif and video_mp4 will automatically set the upload's media_category to tweet_gif and tweet_video respectively, allowing larger file sizes and extra processing time.

Functions

image_gif

Animated GIF images.

image_jpg

JPG images.

image_png

PNG images.

image_webp

WEBP images.

video_mp4

MP4 videos.