pub struct Field {
pub api_name: String,
pub rust_name: String,
pub typ: String,
}Fields§
§api_name: String§rust_name: String§typ: StringImplementations§
Source§impl Field
impl Field
pub fn from_api_name(api_name: String, typ: String) -> Self
pub fn is_optional(&self) -> bool
pub fn is_vec(&self) -> bool
pub fn is_map(&self) -> bool
pub fn is_numeric(&self) -> bool
pub fn is_bool(&self) -> bool
pub fn is_string(&self) -> bool
pub fn is_compound(&self) -> bool
Sourcepub fn inner_type(&self) -> Option<&str>
pub fn inner_type(&self) -> Option<&str>
Retrieves the inner type of Option<> or Vec<> Returns None if the field type is not Option or Vec.
Trait Implementations§
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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