Skip to main content

rsip/headers/untyped/
call_id.rs

1use rsip_derives::UntypedHeader;
2use uuid::Uuid;
3
4/// The `Call-ID` header in its [untyped](super) form.
5#[derive(UntypedHeader, Debug, PartialEq, Eq, Clone)]
6#[header(display_name = "Call-ID")]
7pub struct CallId(String);
8
9impl Default for CallId {
10    fn default() -> Self {
11        Self(format!("{}@example.com", Uuid::new_v4()))
12    }
13}