[−][src]Struct cbor_diag::Tag
A semantic tag for a CBOR data item.
Implementations
impl Tag
[src]
pub const DATETIME: Tag
[src]
A "Standard date/time string"; must only be applied to a text string (or the indefinite variant of) data item.
See RFC 7049 § 2.4.1 for more details on how to interpret the string.
Defined in RFC 7049 § 2.4: Table 3.
pub const EPOCH_DATETIME: Tag
[src]
An "Epoch-based date/time"; must only be applied to an unsigned integer, negative integer or floating point data item.
See RFC 7049 § 2.4.1 for more details on how to interpret the value.
Defined in RFC 7049 § 2.4: Table 3.
pub const POSITIVE_BIGNUM: Tag
[src]
A "positive bignum"; must only be applied to a byte string (or the indefinite variant of) data item.
See RFC 7049 § 2.4.2 for more details on how to interpret the bytes.
Defined in RFC 7049 § 2.4: Table 3.
pub const NEGATIVE_BIGNUM: Tag
[src]
A "negative bignum"; must only be applied to a byte string (or the indefinite variant of) data item.
See RFC 7049 § 2.4.2 for more details on how to interpret the bytes.
Defined in RFC 7049 § 2.4: Table 3.
pub const DECIMAL_FRACTION: Tag
[src]
A "decimal fraction"; must only be applied to an array containing exactly two data items, the first must be either a unsigned integer or negative integer, the second can be either of those or additionally a positive or negative bignum.
See RFC 7049 § 2.4.3 for more details on how to interpret the values.
Defined in RFC 7049 § 2.4: Table 3.
pub const BIGFLOAT: Tag
[src]
A "bigfloat"; must only be applied to an array containing exactly two data items, the first must be either a unsigned integer or negative integer, the second can be either of those or additionally a positive or negative bignum.
See RFC 7049 § 2.4.3 for more details on how to interpret the values.
Defined in RFC 7049 § 2.4: Table 3.
pub const ENCODED_BASE64URL: Tag
[src]
Sets the expected encoding of any byte strings contained in the data item to be "base64url"; can be applied to any sort of data item.
See RFC 7049 § 2.4.4.2 for more details on how the expected encoding is applied.
Defined in RFC 7049 § 2.4: Table 3.
pub const ENCODED_BASE64: Tag
[src]
Sets the expected encoding of any byte strings contained in the data item to be "base64"; can be applied to any sort of data item.
See RFC 7049 § 2.4.4.2 for more details on how the expected encoding is applied.
Defined in RFC 7049 § 2.4: Table 3.
pub const ENCODED_BASE16: Tag
[src]
Sets the expected encoding of any byte strings contained in the data item to be "base16"; can be applied to any sort of data item.
See RFC 7049 § 2.4.4.2 for more details on how the expected encoding is applied.
Defined in RFC 7049 § 2.4: Table 3.
pub const ENCODED_CBOR: Tag
[src]
Marks this item as being an encoded CBOR data item; must only be applied to a byte string (or the indefinite variant of) data item.
See RFC 7049 § 2.4.4.1 for more details on what this means.
Defined in RFC 7049 § 2.4: Table 3.
pub const URI: Tag
[src]
Marks this item as being a valid URI; must only be applied to a text string (or the indefinite variant of) data item.
See RFC 7049 § 2.4.4.3 for more details on what this means.
Defined in RFC 7049 § 2.4: Table 3.
pub const BASE64URL: Tag
[src]
Marks this item as being a base64url encoded string; must only be applied to a text string (or the indefinite variant of) data item.
See RFC 7049 § 2.4.4.3 for more details on what this means.
Defined in RFC 7049 § 2.4: Table 3.
pub const BASE64: Tag
[src]
Marks this item as being a base64 encoded string; must only be applied to a text string (or the indefinite variant of) data item.
See RFC 7049 § 2.4.4.3 for more details on what this means.
Defined in RFC 7049 § 2.4: Table 3.
pub const REGEX: Tag
[src]
Marks this item as being a regex; must only be applied to a text string (or the indefinite variant of) data item.
See RFC 7049 § 2.4.4.3 for more details on what this means.
Defined in RFC 7049 § 2.4: Table 3.
pub const MIME: Tag
[src]
Marks this item as being a MIME message; must only be applied to a text string (or the indefinite variant of) data item.
See RFC 7049 § 2.4.4.3 for more details on what this means.
Defined in RFC 7049 § 2.4: Table 3.
pub const UUID: Tag
[src]
Marks this item as being a binary UUID; must only be applied to a byte string (or the indefinite variant of) data item.
See the spec for more details on what this means.
Defined in non-RFC specification.
pub const NETWORK_ADDRESS: Tag
[src]
Marks this item as being a Network Address (IPv4 or IPv6 or MAC Address); must only be applied to a byte string (or the indefinite variant of) data item.
See the spec for more details on what this means.
Defined in non-RFC specification.
pub const SELF_DESCRIBE_CBOR: Tag
[src]
Marks this item as being CBOR, a no-op; can be applied to any type of data item.
See RFC 7049 § 2.4.5 for more details on why this is useful.
Defined in RFC 7049 § 2.4: Table 3.
Trait Implementations
impl Clone for Tag
[src]
impl Copy for Tag
[src]
impl Debug for Tag
[src]
impl Eq for Tag
[src]
impl PartialEq<Tag> for Tag
[src]
impl StructuralEq for Tag
[src]
impl StructuralPartialEq for Tag
[src]
Auto Trait Implementations
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,