pub struct V1AiGifGeneratorCreateResponse {
pub credits_charged: i64,
pub frame_cost: i64,
pub id: String,
}Expand description
Success
Fields§
§credits_charged: i64The amount of credits deducted from your account to generate the image. We charge credits right when the request is made.
If an error occurred while generating the image(s), credits will be refunded and this field will be updated to include the refund.
frame_cost: i64Deprecated: Previously represented the number of frames (original name of our credit system) used for image generation. Use ‘credits_charged’ instead.
id: StringUnique ID of the image. This value can be used in the get image project API to fetch additional details such as status
Trait Implementations§
Source§impl Clone for V1AiGifGeneratorCreateResponse
impl Clone for V1AiGifGeneratorCreateResponse
Source§fn clone(&self) -> V1AiGifGeneratorCreateResponse
fn clone(&self) -> V1AiGifGeneratorCreateResponse
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 V1AiGifGeneratorCreateResponse
impl Default for V1AiGifGeneratorCreateResponse
Source§fn default() -> V1AiGifGeneratorCreateResponse
fn default() -> V1AiGifGeneratorCreateResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for V1AiGifGeneratorCreateResponse
impl<'de> Deserialize<'de> for V1AiGifGeneratorCreateResponse
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 V1AiGifGeneratorCreateResponse
impl RefUnwindSafe for V1AiGifGeneratorCreateResponse
impl Send for V1AiGifGeneratorCreateResponse
impl Sync for V1AiGifGeneratorCreateResponse
impl Unpin for V1AiGifGeneratorCreateResponse
impl UnwindSafe for V1AiGifGeneratorCreateResponse
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