Struct apns2::CollapseId
[−]
[src]
pub struct CollapseId(_);
Wrapper type for collapse ids. It may be an arbitrary string, but is limited in length to at most 63 bytes.
Methods
impl CollapseId
[src]
fn new(value: String) -> Result<Self, CollapseIdTooLongError>
[src]
Construct a new collapse id. Returns an error if id exceeds the maximum length of 64 bytes.
fn as_str(&self) -> &str
[src]
Get id as a raw str.
Trait Implementations
impl Clone for CollapseId
[src]
fn clone(&self) -> CollapseId
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more