pub struct ResourceUnit {
pub id: String,
pub status: Option<ResourceStatus>,
pub kind: Option<String>,
pub mode: Option<ResourceMode>,
pub quality: Option<ResourceQuality>,
pub composer_ids: Vec<String>,
pub webhook_url: Option<String>,
pub extra: Map<String, Value>,
}Expand description
A pre-acquired composition resource unit.
Fields§
§id: StringThe unit id. Pass it as resource_id when starting a composition.
status: Option<ResourceStatus>The unit’s status.
kind: Option<String>The unit’s composer type.
mode: Option<ResourceMode>The unit’s capture mode.
quality: Option<ResourceQuality>The unit’s output quality.
composer_ids: Vec<String>The composers bound to this unit.
webhook_url: Option<String>Where unit events are delivered.
extra: Map<String, Value>Any fields the server returned that this SDK does not model yet.
Trait Implementations§
Source§impl Clone for ResourceUnit
impl Clone for ResourceUnit
Source§fn clone(&self) -> ResourceUnit
fn clone(&self) -> ResourceUnit
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 ResourceUnit
impl Debug for ResourceUnit
Source§impl<'de> Deserialize<'de> for ResourceUnit
impl<'de> Deserialize<'de> for ResourceUnit
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 ResourceUnit
impl RefUnwindSafe for ResourceUnit
impl Send for ResourceUnit
impl Sync for ResourceUnit
impl Unpin for ResourceUnit
impl UnsafeUnpin for ResourceUnit
impl UnwindSafe for ResourceUnit
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