#[non_exhaustive]pub struct WantedClip<V> {
pub line: LineId,
pub variant: V,
pub speaker: String,
pub key: String,
pub spoken: String,
pub direction: Option<String>,
pub before: Option<(String, String)>,
}Expand description
A clip a voiced line needs, with what the voice needs to say it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.line: LineIdThe line.
variant: VWhich of its clips.
speaker: StringWho says it: a character id, or the narration speaker.
key: StringThe cast key whose voice says it: the speaker and the variant’s suffix if the cast has that key, else the speaker.
spoken: StringThe words it says (what the manifest’s spoken will be).
direction: Option<String>How it is said.
before: Option<(String, String)>The line before it in the scene, for context: its speaker and words.
Implementations§
Source§impl<V: ClipVariant> WantedClip<V>
impl<V: ClipVariant> WantedClip<V>
Trait Implementations§
Source§impl<V: Clone> Clone for WantedClip<V>
impl<V: Clone> Clone for WantedClip<V>
Source§fn clone(&self) -> WantedClip<V>
fn clone(&self) -> WantedClip<V>
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<V: Debug> Debug for WantedClip<V>
impl<V: Debug> Debug for WantedClip<V>
impl<V: Eq> Eq for WantedClip<V>
Source§impl<V: PartialEq> PartialEq for WantedClip<V>
impl<V: PartialEq> PartialEq for WantedClip<V>
impl<V: PartialEq> StructuralPartialEq for WantedClip<V>
Auto Trait Implementations§
impl<V> Freeze for WantedClip<V>where
V: Freeze,
impl<V> RefUnwindSafe for WantedClip<V>where
V: RefUnwindSafe,
impl<V> Send for WantedClip<V>where
V: Send,
impl<V> Sync for WantedClip<V>where
V: Sync,
impl<V> Unpin for WantedClip<V>where
V: Unpin,
impl<V> UnsafeUnpin for WantedClip<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for WantedClip<V>where
V: UnwindSafe,
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