mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-16 23:03:06 +00:00
document
This commit is contained in:
1 parent
14ee33649b
commit
3793da5bf8
1 file changed
+3
@@ -46,6 +46,7 @@ pub struct MediaLinks {
|
||||
pub cdn_url: Url,
|
||||
|
||||
/// Template to construct thumbnail URLs.
|
||||
/// Replace the string `{WIDTH}` with the desired width.
|
||||
/// Only relevant for image media files. (Video media files instead have
|
||||
/// video previews, which, in turn, have their own thumbnail templates.)
|
||||
pub maybe_thumbnail_template: Option<String>,
|
||||
@@ -62,8 +63,10 @@ pub struct VideoPreviews {
|
||||
/// An animated gif preview of the video.
|
||||
pub animated: Url,
|
||||
/// A template used to construct the still thumbnail URL.
|
||||
/// Replace the string `{WIDTH}` with the desired width.
|
||||
pub still_thumbnail_template: String,
|
||||
/// A template used to construct the animated thumbnail URL.
|
||||
/// Replace the string `{WIDTH}` with the desired width.
|
||||
pub animated_thumbnail_template: String,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user