pub struct VoiceFlowVersionAsset {
pub asset_ref: String,
pub format: String,
pub byte_size: u64,
pub duration_ms: Option<u64>,
pub content_hash: String,
}Expand description
One frozen audio asset of a published flow version, as served by
GET /api/voice/flows/{id}/versions/{version}/assets (wavekat-platform
docs 16/17). The bytes were copied into a version-owned R2 object at
publish time and never change, so content_hash identifies them
exactly — the daemon diffs its local cache against it rather than
trusting a bare filename, because the same ref can carry different
bytes across two versions of the same flow.
Fields§
§asset_ref: StringThe vprompt_… reference exactly as it appears in the flow YAML.
format: StringSource telephony format the clip was frozen as (ulaw_8000,
pcm_16000, mp3, …); the container is WAV unless mp3.
byte_size: u64Size of the frozen bytes.
duration_ms: Option<u64>Clip duration if the platform knew it at freeze time.
content_hash: Stringsha256 of the frozen bytes — the cache’s content key.
Trait Implementations§
Source§impl Clone for VoiceFlowVersionAsset
impl Clone for VoiceFlowVersionAsset
Source§fn clone(&self) -> VoiceFlowVersionAsset
fn clone(&self) -> VoiceFlowVersionAsset
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 VoiceFlowVersionAsset
impl Debug for VoiceFlowVersionAsset
Source§impl<'de> Deserialize<'de> for VoiceFlowVersionAsset
impl<'de> Deserialize<'de> for VoiceFlowVersionAsset
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 PartialEq for VoiceFlowVersionAsset
impl PartialEq for VoiceFlowVersionAsset
Source§impl Serialize for VoiceFlowVersionAsset
impl Serialize for VoiceFlowVersionAsset
impl StructuralPartialEq for VoiceFlowVersionAsset
Auto Trait Implementations§
impl Freeze for VoiceFlowVersionAsset
impl RefUnwindSafe for VoiceFlowVersionAsset
impl Send for VoiceFlowVersionAsset
impl Sync for VoiceFlowVersionAsset
impl Unpin for VoiceFlowVersionAsset
impl UnsafeUnpin for VoiceFlowVersionAsset
impl UnwindSafe for VoiceFlowVersionAsset
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