Skip to main content

UuidType

Struct UuidType 

Source
pub struct UuidType;
Expand description

A UUID parameter type.

Trait Implementations§

Source§

impl Clone for UuidType

Source§

fn clone(&self) -> UuidType

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for UuidType

Source§

impl Debug for UuidType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for UuidType

Source§

fn default() -> UuidType

Returns the “default value” for a type. Read more
Source§

impl TypeConverter for UuidType

Source§

type Value = Uuid

The Rust type that this parameter type converts to.
Source§

fn name(&self) -> &str

Returns the descriptive name of this type (used in error messages).
Source§

fn convert(&self, value: &str) -> Result<Self::Value, String>

Convert a string value to the target type. Read more
Source§

fn get_metavar(&self) -> Option<String>

Returns the metavar for this type (used in help text). Read more
Source§

fn get_missing_message(&self) -> Option<String>

Returns an optional message when a required value is missing.
Source§

fn split_envvar_value(&self, value: &str) -> Vec<String>

Split an environment variable value into multiple values. Read more
Source§

fn shell_complete(&self, _incomplete: &str) -> Vec<CompletionItem>

Returns shell completion items for the given incomplete value. Read more
Source§

fn is_composite(&self) -> bool

Whether this type is a composite type (like Tuple).
Source§

fn arity(&self) -> usize

The arity (number of values consumed) for composite types.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AnyTypeConverter for T
where T: TypeConverter + Send + Sync, <T as TypeConverter>::Value: Send + Sync + 'static,

Source§

fn name(&self) -> &str

Returns the descriptive name of this type.
Source§

fn convert_any(&self, value: &str) -> Result<Box<dyn Any + Sync + Send>, String>

Convert a string value to the target type, returning as Box.
Source§

fn convert_multi( &self, values: &[String], ) -> Result<Box<dyn Any + Sync + Send>, String>

Convert multiple string values to the target type, returning as Box. Read more
Source§

fn get_metavar(&self) -> Option<String>

Returns the metavar for this type.
Source§

fn split_envvar_value(&self, value: &str) -> Vec<String>

Split an environment variable value into multiple values.
Source§

fn shell_complete(&self, incomplete: &str) -> Vec<CompletionItem>

Returns shell completion items for the given incomplete value.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.