pub enum ArrayItemType {
Scalar(String),
EnumRef(String),
}Expand description
Item type of a typed array query parameter. The two variants need
different handling in codegen: scalars are already Rust type strings
(possibly paths like rust_decimal::Decimal from [type_mappings]),
while enum refs are raw schema names that must run through
to_rust_type_name sanitization (cloudflare:
resource-sharing_resource_type).
Variants§
Scalar(String)
A Rust scalar type string from the TypeMapper (String, i32, …).
EnumRef(String)
The schema name of a referenced string enum (emits Display).
Trait Implementations§
Source§impl Clone for ArrayItemType
impl Clone for ArrayItemType
Source§fn clone(&self) -> ArrayItemType
fn clone(&self) -> ArrayItemType
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 ArrayItemType
impl Debug for ArrayItemType
Source§impl PartialEq for ArrayItemType
impl PartialEq for ArrayItemType
Source§impl Serialize for ArrayItemType
impl Serialize for ArrayItemType
impl StructuralPartialEq for ArrayItemType
Auto Trait Implementations§
impl Freeze for ArrayItemType
impl RefUnwindSafe for ArrayItemType
impl Send for ArrayItemType
impl Sync for ArrayItemType
impl Unpin for ArrayItemType
impl UnsafeUnpin for ArrayItemType
impl UnwindSafe for ArrayItemType
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