pub struct KittyImageFrame {
    pub x: Option<u32>,
    pub y: Option<u32>,
    pub base_frame: Option<u32>,
    pub frame_number: Option<u32>,
    pub duration_ms: Option<u32>,
    pub composition_mode: KittyFrameCompositionMode,
    pub background_pixel: Option<u32>,
}

Fields

x: Option<u32>

Left edge in pixels to update

y: Option<u32>

Top edge in pixels to update

base_frame: Option<u32>

1-based number of the frame which should be the base data for the new frame being created. If omitted, use background_pixel to specify color. c=…

frame_number: Option<u32>

1-based number of the frame which should be edited. If omitted, a new frame is created. r=…

duration_ms: Option<u32>

Gap in milliseconds of this frame from the next one. Zero or omitted values are interpreted as 40ms. z=…

composition_mode: KittyFrameCompositionMode

Composition mode. Default is AlphaBlending X=…

background_pixel: Option<u32>

Background color for pixels not specified in the frame data. If omitted, use a black, fully-transparent pixel (0) Y=…

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.