#[non_exhaustive]pub struct EncryptionContractConfigurationBuilder { /* private fields */ }
Expand description
A builder for EncryptionContractConfiguration
.
Implementations§
source§impl EncryptionContractConfigurationBuilder
impl EncryptionContractConfigurationBuilder
sourcepub fn preset_speke20_audio(self, input: PresetSpeke20Audio) -> Self
pub fn preset_speke20_audio(self, input: PresetSpeke20Audio) -> Self
A collection of audio encryption presets.
Value description:
-
PRESET-AUDIO-1 - Use one content key to encrypt all of the audio tracks in your stream.
-
PRESET-AUDIO-2 - Use one content key to encrypt all of the stereo audio tracks and one content key to encrypt all of the multichannel audio tracks.
-
PRESET-AUDIO-3 - Use one content key to encrypt all of the stereo audio tracks, one content key to encrypt all of the multichannel audio tracks with 3 to 6 channels, and one content key to encrypt all of the multichannel audio tracks with more than 6 channels.
-
SHARED - Use the same content key for all of the audio and video tracks in your stream.
-
UNENCRYPTED - Don't encrypt any of the audio tracks in your stream.
sourcepub fn set_preset_speke20_audio(self, input: Option<PresetSpeke20Audio>) -> Self
pub fn set_preset_speke20_audio(self, input: Option<PresetSpeke20Audio>) -> Self
A collection of audio encryption presets.
Value description:
-
PRESET-AUDIO-1 - Use one content key to encrypt all of the audio tracks in your stream.
-
PRESET-AUDIO-2 - Use one content key to encrypt all of the stereo audio tracks and one content key to encrypt all of the multichannel audio tracks.
-
PRESET-AUDIO-3 - Use one content key to encrypt all of the stereo audio tracks, one content key to encrypt all of the multichannel audio tracks with 3 to 6 channels, and one content key to encrypt all of the multichannel audio tracks with more than 6 channels.
-
SHARED - Use the same content key for all of the audio and video tracks in your stream.
-
UNENCRYPTED - Don't encrypt any of the audio tracks in your stream.
sourcepub fn get_preset_speke20_audio(&self) -> &Option<PresetSpeke20Audio>
pub fn get_preset_speke20_audio(&self) -> &Option<PresetSpeke20Audio>
A collection of audio encryption presets.
Value description:
-
PRESET-AUDIO-1 - Use one content key to encrypt all of the audio tracks in your stream.
-
PRESET-AUDIO-2 - Use one content key to encrypt all of the stereo audio tracks and one content key to encrypt all of the multichannel audio tracks.
-
PRESET-AUDIO-3 - Use one content key to encrypt all of the stereo audio tracks, one content key to encrypt all of the multichannel audio tracks with 3 to 6 channels, and one content key to encrypt all of the multichannel audio tracks with more than 6 channels.
-
SHARED - Use the same content key for all of the audio and video tracks in your stream.
-
UNENCRYPTED - Don't encrypt any of the audio tracks in your stream.
sourcepub fn preset_speke20_video(self, input: PresetSpeke20Video) -> Self
pub fn preset_speke20_video(self, input: PresetSpeke20Video) -> Self
A collection of video encryption presets.
Value description:
-
PRESET-VIDEO-1 - Use one content key to encrypt all of the video tracks in your stream.
-
PRESET-VIDEO-2 - Use one content key to encrypt all of the SD video tracks and one content key for all HD and higher resolutions video tracks.
-
PRESET-VIDEO-3 - Use one content key to encrypt all of the SD video tracks, one content key for HD video tracks and one content key for all UHD video tracks.
-
PRESET-VIDEO-4 - Use one content key to encrypt all of the SD video tracks, one content key for HD video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks.
-
PRESET-VIDEO-5 - Use one content key to encrypt all of the SD video tracks, one content key for HD1 video tracks, one content key for HD2 video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks.
-
PRESET-VIDEO-6 - Use one content key to encrypt all of the SD video tracks, one content key for HD1 video tracks, one content key for HD2 video tracks and one content key for all UHD video tracks.
-
PRESET-VIDEO-7 - Use one content key to encrypt all of the SD+HD1 video tracks, one content key for HD2 video tracks and one content key for all UHD video tracks.
-
PRESET-VIDEO-8 - Use one content key to encrypt all of the SD+HD1 video tracks, one content key for HD2 video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks.
-
SHARED - Use the same content key for all of the video and audio tracks in your stream.
-
UNENCRYPTED - Don't encrypt any of the video tracks in your stream.
sourcepub fn set_preset_speke20_video(self, input: Option<PresetSpeke20Video>) -> Self
pub fn set_preset_speke20_video(self, input: Option<PresetSpeke20Video>) -> Self
A collection of video encryption presets.
Value description:
-
PRESET-VIDEO-1 - Use one content key to encrypt all of the video tracks in your stream.
-
PRESET-VIDEO-2 - Use one content key to encrypt all of the SD video tracks and one content key for all HD and higher resolutions video tracks.
-
PRESET-VIDEO-3 - Use one content key to encrypt all of the SD video tracks, one content key for HD video tracks and one content key for all UHD video tracks.
-
PRESET-VIDEO-4 - Use one content key to encrypt all of the SD video tracks, one content key for HD video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks.
-
PRESET-VIDEO-5 - Use one content key to encrypt all of the SD video tracks, one content key for HD1 video tracks, one content key for HD2 video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks.
-
PRESET-VIDEO-6 - Use one content key to encrypt all of the SD video tracks, one content key for HD1 video tracks, one content key for HD2 video tracks and one content key for all UHD video tracks.
-
PRESET-VIDEO-7 - Use one content key to encrypt all of the SD+HD1 video tracks, one content key for HD2 video tracks and one content key for all UHD video tracks.
-
PRESET-VIDEO-8 - Use one content key to encrypt all of the SD+HD1 video tracks, one content key for HD2 video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks.
-
SHARED - Use the same content key for all of the video and audio tracks in your stream.
-
UNENCRYPTED - Don't encrypt any of the video tracks in your stream.
sourcepub fn get_preset_speke20_video(&self) -> &Option<PresetSpeke20Video>
pub fn get_preset_speke20_video(&self) -> &Option<PresetSpeke20Video>
A collection of video encryption presets.
Value description:
-
PRESET-VIDEO-1 - Use one content key to encrypt all of the video tracks in your stream.
-
PRESET-VIDEO-2 - Use one content key to encrypt all of the SD video tracks and one content key for all HD and higher resolutions video tracks.
-
PRESET-VIDEO-3 - Use one content key to encrypt all of the SD video tracks, one content key for HD video tracks and one content key for all UHD video tracks.
-
PRESET-VIDEO-4 - Use one content key to encrypt all of the SD video tracks, one content key for HD video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks.
-
PRESET-VIDEO-5 - Use one content key to encrypt all of the SD video tracks, one content key for HD1 video tracks, one content key for HD2 video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks.
-
PRESET-VIDEO-6 - Use one content key to encrypt all of the SD video tracks, one content key for HD1 video tracks, one content key for HD2 video tracks and one content key for all UHD video tracks.
-
PRESET-VIDEO-7 - Use one content key to encrypt all of the SD+HD1 video tracks, one content key for HD2 video tracks and one content key for all UHD video tracks.
-
PRESET-VIDEO-8 - Use one content key to encrypt all of the SD+HD1 video tracks, one content key for HD2 video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks.
-
SHARED - Use the same content key for all of the video and audio tracks in your stream.
-
UNENCRYPTED - Don't encrypt any of the video tracks in your stream.
sourcepub fn build(self) -> Result<EncryptionContractConfiguration, BuildError>
pub fn build(self) -> Result<EncryptionContractConfiguration, BuildError>
Consumes the builder and constructs a EncryptionContractConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EncryptionContractConfigurationBuilder
impl Clone for EncryptionContractConfigurationBuilder
source§fn clone(&self) -> EncryptionContractConfigurationBuilder
fn clone(&self) -> EncryptionContractConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for EncryptionContractConfigurationBuilder
impl Default for EncryptionContractConfigurationBuilder
source§fn default() -> EncryptionContractConfigurationBuilder
fn default() -> EncryptionContractConfigurationBuilder
source§impl PartialEq for EncryptionContractConfigurationBuilder
impl PartialEq for EncryptionContractConfigurationBuilder
source§fn eq(&self, other: &EncryptionContractConfigurationBuilder) -> bool
fn eq(&self, other: &EncryptionContractConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.