google_youtube_api_v3/youtube/invideo
Types
Describes in which corner of the video the visual widget will appear.
pub type CornerPosition {
CornerPositionTopLeft
CornerPositionTopRight
CornerPositionBottomLeft
CornerPositionBottomRight
}
Constructors
-
CornerPositionTopLeft -
CornerPositionTopRight -
CornerPositionBottomLeft -
CornerPositionBottomRight
Describes an invideo branding.
pub type InvideoBranding {
InvideoBranding(
image_bytes: option.Option(String),
image_url: option.Option(String),
position: option.Option(InvideoPosition),
target_channel_id: option.Option(String),
timing: option.Option(InvideoTiming),
)
}
Constructors
-
InvideoBranding( image_bytes: option.Option(String), image_url: option.Option(String), position: option.Option(InvideoPosition), target_channel_id: option.Option(String), timing: option.Option(InvideoTiming), )
Describes the spatial position of a visual widget inside a video. It is a union of various position types, out of which only will be set one.
pub type InvideoPosition {
InvideoPosition(
corner_position: option.Option(CornerPosition),
type_: option.Option(InvideoPositionType),
)
}
Constructors
-
InvideoPosition( corner_position: option.Option(CornerPosition), type_: option.Option(InvideoPositionType), )
Defines the position type.
pub type InvideoPositionType {
InvideoPositionTypeCorner
}
Constructors
-
InvideoPositionTypeCorner
Describes a temporal position of a visual widget inside a video.
pub type InvideoTiming {
InvideoTiming(
duration_ms: option.Option(String),
offset_ms: option.Option(String),
type_: option.Option(InvideoTimingType),
)
}
Constructors
-
InvideoTiming( duration_ms: option.Option(String), offset_ms: option.Option(String), type_: option.Option(InvideoTimingType), )
Describes a timing type. If the value is offsetFromStart, then the offsetMs field represents an offset from the start of the video. If the value is offsetFromEnd, then the offsetMs field represents an offset from the end of the video.
pub type InvideoTimingType {
InvideoTimingTypeOffsetFromStart
InvideoTimingTypeOffsetFromEnd
}
Constructors
-
InvideoTimingTypeOffsetFromStart -
InvideoTimingTypeOffsetFromEnd
Values
pub fn corner_position_decoder() -> decode.Decoder(CornerPosition)
pub fn corner_position_to_string(value: CornerPosition) -> String
pub fn invideo_branding_decoder() -> decode.Decoder(
InvideoBranding,
)
pub fn invideo_branding_to_json(
value: InvideoBranding,
) -> json.Json
pub fn invideo_position_decoder() -> decode.Decoder(
InvideoPosition,
)
pub fn invideo_position_to_json(
value: InvideoPosition,
) -> json.Json
pub fn invideo_position_type_decoder() -> decode.Decoder(
InvideoPositionType,
)
pub fn invideo_position_type_to_string(
value: InvideoPositionType,
) -> String
pub fn invideo_timing_decoder() -> decode.Decoder(InvideoTiming)
pub fn invideo_timing_to_json(value: InvideoTiming) -> json.Json
pub fn invideo_timing_type_decoder() -> decode.Decoder(
InvideoTimingType,
)
pub fn invideo_timing_type_to_string(
value: InvideoTimingType,
) -> String