#[non_exhaustive]pub struct EncryptionContractConfiguration {
pub preset_speke20_audio: Option<PresetSpeke20Audio>,
pub preset_speke20_video: Option<PresetSpeke20Video>,
}
Expand description
Use encryptionContractConfiguration to configure one or more content encryption keys for your endpoints that use SPEKE 2.0. The encryption contract defines which content keys are used to encrypt the audio and video tracks in your stream. To configure the encryption contract, specify which audio and video encryption presets to use. Note the following considerations when using encryptionContractConfiguration: encryptionContractConfiguration can be used for DASH endpoints that use SPEKE 2.0. SPEKE 2.0 relies on the CPIX 2.3 specification. You must disable key rotation for this endpoint by setting keyRotationIntervalSeconds to 0.
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.preset_speke20_audio: Option<PresetSpeke20Audio>
A collection of audio encryption presets.
preset_speke20_video: Option<PresetSpeke20Video>
A collection of video encryption presets.
Implementations§
source§impl EncryptionContractConfiguration
impl EncryptionContractConfiguration
sourcepub fn preset_speke20_audio(&self) -> Option<&PresetSpeke20Audio>
pub fn preset_speke20_audio(&self) -> Option<&PresetSpeke20Audio>
A collection of audio encryption presets.
sourcepub fn preset_speke20_video(&self) -> Option<&PresetSpeke20Video>
pub fn preset_speke20_video(&self) -> Option<&PresetSpeke20Video>
A collection of video encryption presets.
source§impl EncryptionContractConfiguration
impl EncryptionContractConfiguration
sourcepub fn builder() -> EncryptionContractConfigurationBuilder
pub fn builder() -> EncryptionContractConfigurationBuilder
Creates a new builder-style object to manufacture EncryptionContractConfiguration
.
Trait Implementations§
source§impl Clone for EncryptionContractConfiguration
impl Clone for EncryptionContractConfiguration
source§fn clone(&self) -> EncryptionContractConfiguration
fn clone(&self) -> EncryptionContractConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for EncryptionContractConfiguration
impl PartialEq for EncryptionContractConfiguration
source§fn eq(&self, other: &EncryptionContractConfiguration) -> bool
fn eq(&self, other: &EncryptionContractConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EncryptionContractConfiguration
Auto Trait Implementations§
impl Freeze for EncryptionContractConfiguration
impl RefUnwindSafe for EncryptionContractConfiguration
impl Send for EncryptionContractConfiguration
impl Sync for EncryptionContractConfiguration
impl Unpin for EncryptionContractConfiguration
impl UnwindSafe for EncryptionContractConfiguration
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more