pub struct Layer {Show 15 fields
pub uuid: Option<RVUuid>,
pub name: String,
pub color: Option<Color>,
pub muted: bool,
pub hidden: bool,
pub blend_mode: i32,
pub opacity: f64,
pub selected_target_set_uuid: Option<RVUuid>,
pub effects_preset_uuid: Option<RVUuid>,
pub effects_build_duration: f64,
pub layer_preset_uuid: Option<RVUuid>,
pub hot_key: Option<HotKey>,
pub transition: Option<Transition>,
pub effects: Vec<Effect>,
pub blend: Option<Blending>,
}Fields§
§uuid: Option<RVUuid>§name: String§color: Option<Color>§muted: bool§blend_mode: i32§opacity: f64§selected_target_set_uuid: Option<RVUuid>§effects_preset_uuid: Option<RVUuid>§effects_build_duration: f64§layer_preset_uuid: Option<RVUuid>§hot_key: Option<HotKey>§transition: Option<Transition>§effects: Vec<Effect>§blend: Option<Blending>Implementations§
Source§impl Layer
impl Layer
Sourcepub fn blend_mode(&self) -> BlendMode
pub fn blend_mode(&self) -> BlendMode
Returns the enum value of blend_mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_blend_mode(&mut self, value: BlendMode)
pub fn set_blend_mode(&mut self, value: BlendMode)
Sets blend_mode to the provided enum value.
Trait Implementations§
Source§impl Message for Layer
impl Message for Layer
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnwindSafe for Layer
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