Struct threema_gateway::BlobId
[−]
[src]
pub struct BlobId(pub [u8; 16]);
A blob ID. Must contain exactly 16 lowercase hexadecimal characters.
Methods
impl BlobId
[src]
pub fn new(id: [u8; 16]) -> Self
[src]
Create a new BlobId.
pub fn from_str(id: &str) -> Result<Self, ApiError>
[src]
Create a new BlobId from a 32 character hexadecimal String.
Trait Implementations
impl Debug for BlobId
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for BlobId
[src]
fn eq(&self, __arg_0: &BlobId) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &BlobId) -> bool
[src]
This method tests for !=
.
impl Eq for BlobId
[src]
impl Clone for BlobId
[src]
fn clone(&self) -> BlobId
[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
impl Display for BlobId
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more