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 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(
helper: &mut DeserializeHelper,
bytes: &[u8],
) -> Result<X, Error>
fn deserialize_bytes( helper: &mut DeserializeHelper, bytes: &[u8], ) -> Result<X, Error>
Try to deserialize the type from bytes. Read more
Source§fn deserialize_str(helper: &mut DeserializeHelper, s: &str) -> Result<X, Error>
fn deserialize_str(helper: &mut DeserializeHelper, s: &str) -> Result<X, Error>
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.
Source§fn init<'de>(
helper: &mut DeserializeHelper,
event: Event<'de>,
) -> Result<DeserializerOutput<'de, Self>, Error>
fn init<'de>( helper: &mut DeserializeHelper, event: Event<'de>, ) -> Result<DeserializerOutput<'de, Self>, Error>
Source§fn default_deserializer() -> Self::Deserializerwhere
Self::Deserializer: Default,
fn default_deserializer() -> Self::Deserializerwhere
Self::Deserializer: Default,
Create a new default deserializer. Read more
Source§fn default_value(helper: &mut DeserializeHelper) -> Result<Self, Error>where
Self::Deserializer: Default,
fn default_value(helper: &mut DeserializeHelper) -> Result<Self, Error>where
Self::Deserializer: Default,
Create a new default value by creating and default deserializer and
finish it right after. Read more