# ChannelUpdate

## pub struct ChannelUpdate

An update to a channel’s metadata. Only optional fields that are set will change.

## Implementations

### impl ChannelUpdate

#### pub fn new(data_type: ChannelDataType) -> Self

#### pub fn description(self, value: impl Into<String>) -> Self

Set the channel’s description.

#### pub fn unit(self, symbol: impl Into<String>) -> Self

Set the channel’s unit by symbol (e.g. `"m/s"`, `"celsius"`).

#### pub fn clear_unit(self) -> Self

Clear any unit previously set on the channel.

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