# Struct event::ChannelCreated

> `channel.created`: the channel object plus `reason?: "access_gained"`.

`zaun_community_protocol::event::ChannelCreated` · Struct

```rust
pub struct ChannelCreated { … }
```

`channel.created`: the channel object plus `reason?: "access_gained"`.

## Fields

### `channel: Channel`

The channel.

### `reason: Option<VisibilityReason>`

Set when the channel became visible rather than created.

## Trait implementations

`Clone`, `Debug`, `Deserialize<'de>`, `PartialEq`, `Serialize`, `StructuralPartialEq`

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/event/body/structure/struct.ChannelCreated.html)
