Struct google_clis_common::FieldCursor
source · pub struct FieldCursor(_);Implementations§
source§impl FieldCursor
impl FieldCursor
pub fn set(&mut self, value: &str) -> Result<(), CLIError>
pub fn did_you_mean(value: &str, possible_values: &[&str]) -> Option<String>
pub fn set_json_value( &self, object: &mut Value, value: &str, type_info: JsonTypeInfo, err: &mut InvalidOptionsError, orig_cursor: &FieldCursor )
pub fn num_fields(&self) -> usize
Trait Implementations§
source§impl Clone for FieldCursor
impl Clone for FieldCursor
source§fn clone(&self) -> FieldCursor
fn clone(&self) -> FieldCursor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for FieldCursor
impl Default for FieldCursor
source§fn default() -> FieldCursor
fn default() -> FieldCursor
Returns the “default value” for a type. Read more
source§impl From<&'static str> for FieldCursor
impl From<&'static str> for FieldCursor
source§fn from(value: &'static str) -> FieldCursor
fn from(value: &'static str) -> FieldCursor
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for FieldCursor
impl Send for FieldCursor
impl Sync for FieldCursor
impl Unpin for FieldCursor
impl UnwindSafe for FieldCursor
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