autoendpoint/extractors/new_channel_data.rs
1use uuid::Uuid;
2
3/// The data provided when creating a new channel for an existing user. Extract
4/// from the request via the `Json` extractor.
5#[derive(serde::Deserialize, Default)]
6pub struct NewChannelData {
7 #[serde(rename = "channelID")]
8 pub channel_id: Option<Uuid>,
9 pub key: Option<String>,
10}