rsip 0.4.0

SIP Rust library, parser & generator of SIP
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use rsip_derives::{ToTypedHeader, UntypedHeader};

/// The `Allow` header in its [untyped](super) form.
#[derive(UntypedHeader, ToTypedHeader, Debug, PartialEq, Eq, Clone)]
pub struct Allow(String);

impl Default for Allow {
    fn default() -> Self {
        Self(
            crate::common::Method::all()
                .into_iter()
                .map(|s| s.to_string())
                .collect::<Vec<_>>()
                .join(", "),
        )
    }
}