pub enum SupportedAttributeTypes {
Show 17 variants AsciiString, ByteString, Integer, Integer64, Date, IPv4Addr, IPv4Prefix, IPv6Addr, IPv6Prefix, InterfaceId, Enum, Tlv, Vsa, Evs, Concat, Extended, LongExtended,
}
Expand description

Represents a list of supported data types as defined in RFC 2865 & RFC 8044

Variants

AsciiString

Rust’s String; RFC 8044 calls this “text” - UTF-8 text

ByteString

Rusts’s u8; RFC 8044 calls this “string” (FreeRADIUS calls this “octets”) - binary data as a sequence of undistinguished octets

Integer

Rust’s u32

Integer64

Rust’s u64

Date

Rust’s u32; RFC 8044 calls this “time”

IPv4Addr

Rust’s [u8;4]

IPv4Prefix

Rust’s [u8;5]

IPv6Addr

Rust’s [u8;16]

IPv6Prefix

Rust’s [u8;18]

InterfaceId

Rust’s [u8;6]; RFC 8044 calls this “ifid”

Enum

Rust’s u32

Tlv

Rust’s u8

Vsa

Rust’s u8; RFC 8044 defines this as vendor-specific data

Evs

Rust’s u8; RFC 8044 defines this as Extended-Vendor-Specific Attribute (FreeRADIUS accepts VSA instead of EVS data type)

Concat

Rust’s u8; Doesn’t look like a type on its own, but rather an extension to some data types (in FreeRADIUS this is a flag) usually string/octets

Extended

Rust’s u8; Doesn’t look like a type on its own, but rather an extension to some data types (in FreeRADIUS this is a flag)

LongExtended

Rust’s u8; Doesn’t look like a type on its own, but rather an extension to some data types (in FreeRADIUS this is a flag)

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.