pub enum UnstructuredKind<'a> {
Text(&'a TextRestrictions),
Binary(&'a BinaryRestrictions),
}Expand description
Which flavour of unstructured wrapper a type is, together with the inline case’s restrictions.
Variants§
Text(&'a TextRestrictions)
variant { inline: text<…>, url } with Role::UnstructuredText.
Binary(&'a BinaryRestrictions)
variant { inline: binary<…>, url } with Role::UnstructuredBinary.
Auto Trait Implementations§
impl<'a> Freeze for UnstructuredKind<'a>
impl<'a> RefUnwindSafe for UnstructuredKind<'a>
impl<'a> Send for UnstructuredKind<'a>
impl<'a> Sync for UnstructuredKind<'a>
impl<'a> Unpin for UnstructuredKind<'a>
impl<'a> UnsafeUnpin for UnstructuredKind<'a>
impl<'a> UnwindSafe for UnstructuredKind<'a>
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