#[non_exhaustive]pub struct Array {
pub items: Box<RefOr<Schema>>,
pub max_items: Option<usize>,
pub min_items: Option<usize>,
pub xml: Option<Xml>,
/* private fields */
}
Expand description
Array represents Vec
or slice
type of items.
See Schema::Array
for more details.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.items: Box<RefOr<Schema>>
Schema representing the array items type.
max_items: Option<usize>
Max length of the array.
min_items: Option<usize>
Min lenght of the array.
xml: Option<Xml>
Xml format of the array.
Implementations
sourceimpl Array
impl Array
sourcepub fn to_builder(self) -> ArrayBuilder
pub fn to_builder(self) -> ArrayBuilder
Convert this Array
to ArrayBuilder
.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Array
impl<'de> Deserialize<'de> for Array
sourcefn 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
sourceimpl From<Array> for ArrayBuilder
impl From<Array> for ArrayBuilder
sourceimpl From<ArrayBuilder> for Array
impl From<ArrayBuilder> for Array
sourcefn from(value: ArrayBuilder) -> Self
fn from(value: ArrayBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Array
impl Send for Array
impl Sync for Array
impl Unpin for Array
impl UnwindSafe for Array
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more