pub struct ProxyLink {
pub id: ProxyLinkId,
pub clip_id: ClipId,
pub proxy_path: PathBuf,
pub quality: ProxyQuality,
pub resolution: Option<String>,
pub bitrate: Option<u32>,
pub codec: Option<String>,
}Expand description
A link between a clip and its proxy media.
Fields§
§id: ProxyLinkIdUnique identifier.
clip_id: ClipIdOriginal clip ID.
proxy_path: PathBufProxy file path.
quality: ProxyQualityProxy quality.
resolution: Option<String>Resolution (e.g., “1920x1080”).
bitrate: Option<u32>Bitrate in kbps.
codec: Option<String>Codec used.
Implementations§
Source§impl ProxyLink
impl ProxyLink
Sourcepub fn new(clip_id: ClipId, proxy_path: PathBuf, quality: ProxyQuality) -> Self
pub fn new(clip_id: ClipId, proxy_path: PathBuf, quality: ProxyQuality) -> Self
Creates a new proxy link.
Sourcepub fn set_resolution(&mut self, resolution: impl Into<String>)
pub fn set_resolution(&mut self, resolution: impl Into<String>)
Sets the resolution.
Sourcepub fn set_bitrate(&mut self, bitrate: u32)
pub fn set_bitrate(&mut self, bitrate: u32)
Sets the bitrate.
Sourcepub fn proxy_exists(&self) -> bool
pub fn proxy_exists(&self) -> bool
Checks if the proxy file exists.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ProxyLink
impl<'de> Deserialize<'de> for ProxyLink
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
Auto Trait Implementations§
impl Freeze for ProxyLink
impl RefUnwindSafe for ProxyLink
impl Send for ProxyLink
impl Sync for ProxyLink
impl Unpin for ProxyLink
impl UnsafeUnpin for ProxyLink
impl UnwindSafe for ProxyLink
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
Converts
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>
Converts
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