pub enum TransparencyMode {
Auto,
Native,
ChromaKey,
}Expand description
How a transparent-background result is produced.
Variants§
Auto
Prefer native alpha and otherwise use a local chroma-key matte.
Wire value auto.
Native
Require provider-native alpha output.
Wire value native.
ChromaKey
Generate a flat key background and remove it locally.
Wire value chroma_key.
Trait Implementations§
Source§impl Clone for TransparencyMode
impl Clone for TransparencyMode
Source§fn clone(&self) -> TransparencyMode
fn clone(&self) -> TransparencyMode
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 moreimpl Copy for TransparencyMode
Source§impl Debug for TransparencyMode
impl Debug for TransparencyMode
Source§impl Default for TransparencyMode
impl Default for TransparencyMode
Source§impl<'de> Deserialize<'de> for TransparencyMode
impl<'de> Deserialize<'de> for TransparencyMode
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 Display for TransparencyMode
impl Display for TransparencyMode
impl Eq for TransparencyMode
Source§impl Hash for TransparencyMode
impl Hash for TransparencyMode
Source§impl JsonSchema for TransparencyMode
impl JsonSchema for TransparencyMode
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 moreSource§impl Ord for TransparencyMode
impl Ord for TransparencyMode
Source§fn cmp(&self, other: &TransparencyMode) -> Ordering
fn cmp(&self, other: &TransparencyMode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TransparencyMode
impl PartialEq for TransparencyMode
Source§impl PartialOrd for TransparencyMode
impl PartialOrd for TransparencyMode
Source§impl Serialize for TransparencyMode
impl Serialize for TransparencyMode
impl StructuralPartialEq for TransparencyMode
Auto Trait Implementations§
impl Freeze for TransparencyMode
impl RefUnwindSafe for TransparencyMode
impl Send for TransparencyMode
impl Sync for TransparencyMode
impl Unpin for TransparencyMode
impl UnsafeUnpin for TransparencyMode
impl UnwindSafe for TransparencyMode
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