pub struct V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem {
pub new_face: String,
pub original_face: String,
}Expand description
V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem
Fields§
§new_face: StringThe face image that will be used to replace the face in the original_face. This value is either
- a direct URL to the video file
file_pathfield from the response of the upload urls API.
Please refer to the Input File documentation to learn more.
original_face: StringThe face detected from the image in target_file_path. The file name is in the format of <face_frame>-<face_index>.png. This value is corresponds to the response in the face detection API.
- The face_frame is the frame number of the face in the target image. For images, the frame number is always 0.
- The face_index is the index of the face in the target image, starting from 0 going left to right.
Trait Implementations§
Source§impl Clone for V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem
impl Clone for V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem
Source§fn clone(&self) -> V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem
fn clone(&self) -> V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem
impl Default for V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem
Source§fn default() -> V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem
fn default() -> V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem
impl<'de> Deserialize<'de> for V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem
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 V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem
impl RefUnwindSafe for V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem
impl Send for V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem
impl Sync for V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem
impl Unpin for V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem
impl UnwindSafe for V1FaceSwapPhotoCreateBodyAssetsFaceMappingsItem
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