pub struct EraserInput {
pub image_url: String,
pub mask_type: Option<String>,
pub mask_url: String,
pub preserve_alpha: Option<bool>,
pub sync_mode: Option<bool>,
}Fields§
§image_url: StringInput Image to erase from/// Input Image to erase from/// “https://storage.googleapis.com/falserverless/bria/bria_eraser_img.png”
mask_type: Option<String>You can use this parameter to specify the type of the input mask from the list. ‘manual’ opttion should be used in cases in which the mask had been generated by a user (e.g. with a brush tool), and ‘automatic’ mask type should be used when mask had been generated by an algorithm like ‘SAM’.
mask_url: StringThe URL of the binary mask image that represents the area that will be cleaned./// The URL of the binary mask image that represents the area that will be cleaned./// “https://storage.googleapis.com/falserverless/bria/bria_eraser_mask.png”
preserve_alpha: Option<bool>If set to true, attempts to preserve the alpha channel of the input image.
sync_mode: Option<bool>If set to true, the function will wait for the image to be generated and uploaded before returning the response. This will increase the latency of the function but it allows you to get the image directly in the response without going through the CDN.
Trait Implementations§
Source§impl Debug for EraserInput
impl Debug for EraserInput
Source§impl Default for EraserInput
impl Default for EraserInput
Source§fn default() -> EraserInput
fn default() -> EraserInput
Source§impl<'de> Deserialize<'de> for EraserInput
impl<'de> Deserialize<'de> for EraserInput
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>,
Auto Trait Implementations§
impl Freeze for EraserInput
impl RefUnwindSafe for EraserInput
impl Send for EraserInput
impl Sync for EraserInput
impl Unpin for EraserInput
impl UnwindSafe for EraserInput
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
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().