Struct google_clis_common::FieldCursor
source · [−]pub struct FieldCursor(_);Implementations
sourceimpl 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
sourceimpl Clone for FieldCursor
impl Clone for FieldCursor
sourcefn clone(&self) -> FieldCursor
fn clone(&self) -> FieldCursor
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Default for FieldCursor
impl Default for FieldCursor
sourcefn default() -> FieldCursor
fn default() -> FieldCursor
Returns the “default value” for a type. Read more
sourceimpl From<&'static str> for FieldCursor
impl From<&'static str> for FieldCursor
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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