# Channel

## pub struct Channel

A time-series channel on a data source (dataset, video, connection, etc.).

Carries the channel’s identity and its editable metadata (description + unit)
plus the channel data type.

## Implementations

### impl Channel

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

RID of the data source (dataset, video, connection, etc.) that owns this channel.

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

#### pub fn description(&self) -> Option<&str>

#### pub fn unit(&self) -> Option<&str>

Unit symbol (e.g. `"m/s"`) if set.

#### pub fn data_type(&self) -> &ChannelDataType

## 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)

**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)
