pub enum AuthorityValue {
One(String),
Many(Vec<String>),
}Expand description
A logical authority value: a non-empty string or a non-empty array of non-empty strings. Profile 0.2 rejects numbers, booleans, objects, null, empty strings, and empty arrays in the logical input domain.
Variants§
One(String)
A single string value.
Many(Vec<String>)
A collection value; canonicalization denormalizes each member into a
[key:member, true] tuple.
Implementations§
Trait Implementations§
Source§impl Clone for AuthorityValue
impl Clone for AuthorityValue
Source§fn clone(&self) -> AuthorityValue
fn clone(&self) -> AuthorityValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthorityValue
impl Debug for AuthorityValue
Source§impl<'de> Deserialize<'de> for AuthorityValue
impl<'de> Deserialize<'de> for AuthorityValue
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AuthorityValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AuthorityValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AuthorityValue
Source§impl PartialEq for AuthorityValue
impl PartialEq for AuthorityValue
Source§impl Serialize for AuthorityValue
impl Serialize for AuthorityValue
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AuthorityValue
Auto Trait Implementations§
impl Freeze for AuthorityValue
impl RefUnwindSafe for AuthorityValue
impl Send for AuthorityValue
impl Sync for AuthorityValue
impl Unpin for AuthorityValue
impl UnsafeUnpin for AuthorityValue
impl UnwindSafe for AuthorityValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more