#[non_exhaustive]pub struct Manifest {
pub file_name: String,
pub type: ManifestType,
pub mux_streams: Vec<String>,
pub manifest_config: Option<ManifestConfig>,
/* private fields */
}
Expand description
Manifest configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.file_name: String
The name of the generated file. The default is manifest
with the
extension suffix corresponding to the
Manifest.type.
type: ManifestType
Required. Type of the manifest.
mux_streams: Vec<String>
Required. List of user supplied MuxStream.key values that should appear in this manifest.
When Manifest.type is
HLS
, a media manifest with name
MuxStream.key and .m3u8
extension is generated for each element in this list.
manifest_config: Option<ManifestConfig>
Specifies the manifest configuration.
Implementations§
Source§impl Manifest
impl Manifest
pub fn new() -> Self
Sourcepub fn set_file_name<T: Into<String>>(self, v: T) -> Self
pub fn set_file_name<T: Into<String>>(self, v: T) -> Self
Sets the value of file_name.
Sourcepub fn set_type<T: Into<ManifestType>>(self, v: T) -> Self
pub fn set_type<T: Into<ManifestType>>(self, v: T) -> Self
Sets the value of r#type.
Sourcepub fn set_mux_streams<T, V>(self, v: T) -> Self
pub fn set_mux_streams<T, V>(self, v: T) -> Self
Sets the value of mux_streams.
Sourcepub fn set_manifest_config<T: Into<Option<ManifestConfig>>>(self, v: T) -> Self
pub fn set_manifest_config<T: Into<Option<ManifestConfig>>>(self, v: T) -> Self
Sets the value of manifest_config.
Note that all the setters affecting manifest_config
are mutually
exclusive.
Sourcepub fn dash(&self) -> Option<&Box<DashConfig>>
pub fn dash(&self) -> Option<&Box<DashConfig>>
The value of manifest_config
if it holds a Dash
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_dash<T: Into<Box<DashConfig>>>(self, v: T) -> Self
pub fn set_dash<T: Into<Box<DashConfig>>>(self, v: T) -> Self
Sets the value of manifest_config
to hold a Dash
.
Note that all the setters affecting manifest_config
are
mutually exclusive.