# DataSource

## pub enum DataSource

A data source attached to an asset or run by name.

## Variants

### Dataset(String)

### Video(String)

### Connection(String)

## Implementations

### impl DataSource

#### pub fn dataset(rid: impl Into<String>) -> Self

#### pub fn video(rid: impl Into<String>) -> Self

#### pub fn connection(rid: impl Into<String>) -> Self

#### pub fn rid(&self) -> &str

The RID of this data source, regardless of its kind.

## Trait implementations

**Derived**: [`Debug`](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html), [`Clone`](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html), [`StructuralPartialEq`](https://doc.rust-lang.org/1.98.1/core/marker/trait.StructuralPartialEq.html), [`PartialEq`](https://doc.rust-lang.org/1.98.1/core/cmp/trait.PartialEq.html), [`Eq`](https://doc.rust-lang.org/1.98.1/core/cmp/trait.Eq.html)

**Auto traits**: [`Send`](https://doc.rust-lang.org/1.98.1/core/marker/trait.Send.html), [`Sync`](https://doc.rust-lang.org/1.98.1/core/marker/trait.Sync.html), [`Unpin`](https://doc.rust-lang.org/1.98.1/core/marker/trait.Unpin.html), [`UnwindSafe`](https://doc.rust-lang.org/1.98.1/core/panic/unwind_safe/trait.UnwindSafe.html), [`RefUnwindSafe`](https://doc.rust-lang.org/1.98.1/core/panic/unwind_safe/trait.RefUnwindSafe.html)
