> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateVideoRequestOptions

> CreateVideoRequestOptions — Kinetica Rust API

[gpudb\_api](https://docs.kinetica.com/content/api/rust/index.md)::<wbr />[generated](https://docs.kinetica.com/content/api/rust/generated/index.md)::<wbr />[api](https://docs.kinetica.com/content/api/rust/generated/api/index.md)
[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/api.rs#L11048-L11068)&#x20;

<pre>`pub struct CreateVideoRequestOptions {    pub ttl: String,    pub window: String,    pub no_error_if_exists: String,    pub replace_if_exists: String,}`</pre>

Optional parameters for the `/create/video` endpoint.`Default::default()` is the empty set: only options set explicitly are sent, and anything left empty falls back to the server’s own default.

Fields
`ttl: String`

Sets the TTL of the video.

`window: String`

Specified using the data-type corresponding to the `attribute`. For a window of size W, a video frame rendered for time t will visualize data in the interval \[t-W,t]. The minimum window size is the interval between successive frames. The minimum value is the default. If a value less than the minimum value is specified, it is replaced with the minimum window size. Larger values will make changes throughout the video appear more smooth while smaller values will capture fast variations in the data.

`no_error_if_exists: String`

If true, does not return an error if the video already exists. Ignored if replace\_if\_exists is true. Server default: `false`.

`replace_if_exists: String`

If true, deletes any existing video with the same path before creating a new video. Server default: `false`.

## Implementations

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/api.rs#L11070-L11094)
impl [CreateVideoRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.CreateVideoRequestOptions.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/api.rs#L11072-L11093)
pub fn [to\_map](#method.to_map)(\&self) -> [HashMap](https://doc.rust-lang.org/1.98.1/std/collections/hash/map/struct.HashMap.html)\<[String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html)>

Converts the set (non-empty) options into the wire-format string map.

## Trait Implementations

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/api.rs#L11047)
impl [Clone](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html) for [CreateVideoRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.CreateVideoRequestOptions.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/api.rs#L11047)
fn [clone](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#tymethod.clone)(\&self) -> [CreateVideoRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.CreateVideoRequestOptions.md)

Returns a duplicate of the value. [Read more](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#tymethod.clone)

1.0.0 (const: [unstable](https://github.com/rust-lang/rust/issues/142757)) · [Source](https://doc.rust-lang.org/1.98.1/src/core/clone.rs.html#245-247)
fn [clone\_from](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#method.clone_from)(\&mut self, source: \&Self)

Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#method.clone_from)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/api.rs#L11047)
impl [Debug](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html) for [CreateVideoRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.CreateVideoRequestOptions.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/api.rs#L11047)
fn [fmt](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html#tymethod.fmt)(\&self, f: \&mut [Formatter](https://doc.rust-lang.org/1.98.1/core/fmt/struct.Formatter.html)\<'\_>) -> [Result](https://doc.rust-lang.org/1.98.1/core/fmt/type.Result.html)

Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html#tymethod.fmt)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/api.rs#L11047)
impl [Default](https://doc.rust-lang.org/1.98.1/core/default/trait.Default.html) for [CreateVideoRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.CreateVideoRequestOptions.md)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/api.rs#L11047)
fn [default](https://doc.rust-lang.org/1.98.1/core/default/trait.Default.html#tymethod.default)() -> [CreateVideoRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.CreateVideoRequestOptions.md)

Returns the “default value” for a type. [Read more](https://doc.rust-lang.org/1.98.1/core/default/trait.Default.html#tymethod.default)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.