pub enum MaxOccurs {
Unbounded,
Bounded(usize),
}
Expand description
Represents the maximum occurrence of types or elements
Variants§
Unbounded
The occurrence is unbounded.
Bounded(usize)
The occurrence is bound to the specified limit.
Implementations§
Trait Implementations§
Source§impl AddAssign for MaxOccurs
impl AddAssign for MaxOccurs
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl<'de> Deserialize<'de> for MaxOccurs
impl<'de> Deserialize<'de> for MaxOccurs
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MulAssign for MaxOccurs
impl MulAssign for MaxOccurs
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moreSource§impl Ord for MaxOccurs
impl Ord for MaxOccurs
Source§impl PartialOrd for MaxOccurs
impl PartialOrd for MaxOccurs
impl Copy for MaxOccurs
impl DeserializeBytesFromStr for MaxOccurs
impl Eq for MaxOccurs
impl StructuralPartialEq for MaxOccurs
Auto Trait Implementations§
impl Freeze for MaxOccurs
impl RefUnwindSafe for MaxOccurs
impl Send for MaxOccurs
impl Sync for MaxOccurs
impl Unpin for MaxOccurs
impl UnwindSafe for MaxOccurs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<X> DeserializeBytes for X
impl<X> DeserializeBytes for X
Source§fn deserialize_bytes<R>(reader: &R, bytes: &[u8]) -> Result<X, Error>where
R: XmlReader,
fn deserialize_bytes<R>(reader: &R, bytes: &[u8]) -> Result<X, Error>where
R: XmlReader,
Try to deserialize the type from bytes. Read more
Source§fn deserialize_str<R>(reader: &R, s: &str) -> Result<X, Error>where
R: XmlReader,
fn deserialize_str<R>(reader: &R, s: &str) -> Result<X, Error>where
R: XmlReader,
Optimized version of
deserialize_bytes
that
takes a string instead of a bytes slice. Read moreSource§impl<'de, R, X> DeserializeSync<'de, R> for Xwhere
R: XmlReaderSync<'de>,
X: WithDeserializer,
impl<'de, R, X> DeserializeSync<'de, R> for Xwhere
R: XmlReaderSync<'de>,
X: WithDeserializer,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<X> WithDeserializer for Xwhere
X: DeserializeBytes + Debug,
impl<X> WithDeserializer for Xwhere
X: DeserializeBytes + Debug,
Source§type Deserializer = ContentDeserializer<X>
type Deserializer = ContentDeserializer<X>
The deserializer to use for this type.