pub enum InputVoiceAudio {
Voice(PeerInputAudioIndexed),
NoVoice(PeerInputAudioIndexed),
}Expand description
Represents an audio chunk with its associated voice activity status.
Variants§
Voice(PeerInputAudioIndexed)
The chunk contains active voice.
NoVoice(PeerInputAudioIndexed)
The chunk contains silence or non-voice background noise.
Trait Implementations§
Source§impl Clone for InputVoiceAudio
impl Clone for InputVoiceAudio
Source§fn clone(&self) -> InputVoiceAudio
fn clone(&self) -> InputVoiceAudio
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputVoiceAudio
impl Debug for InputVoiceAudio
Source§impl<'de> Deserialize<'de> for InputVoiceAudio
impl<'de> Deserialize<'de> for InputVoiceAudio
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<InputVoiceAudio> for PeerInputAudio
impl From<InputVoiceAudio> for PeerInputAudio
Source§fn from(input_voice_audio: InputVoiceAudio) -> Self
fn from(input_voice_audio: InputVoiceAudio) -> Self
Converts to this type from the input type.
Source§impl From<InputVoiceAudio> for [i32; 1280]
impl From<InputVoiceAudio> for [i32; 1280]
Source§fn from(input_voice_audio: InputVoiceAudio) -> Self
fn from(input_voice_audio: InputVoiceAudio) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for InputVoiceAudio
impl JsonSchema for InputVoiceAudio
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for InputVoiceAudio
impl RefUnwindSafe for InputVoiceAudio
impl Send for InputVoiceAudio
impl Sync for InputVoiceAudio
impl Unpin for InputVoiceAudio
impl UnsafeUnpin for InputVoiceAudio
impl UnwindSafe for InputVoiceAudio
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
Mutably borrows from an owned value. Read more