Struct ParameterDescriptor

Source
pub struct ParameterDescriptor { /* private fields */ }
Expand description

Metadata for a parameter.

Implementations§

Source§

impl ParameterDescriptor

Source

pub fn binding(&self) -> ParameterBinding

Describes whether a parameter can be NULL or not, or if it has a default value.

Source

pub fn is_nullable(&self) -> bool

Returns true if the column can contain NULL values.

Is a shortcut for matching against the parameter binding.

Source

pub fn has_default(&self) -> bool

Returns true if the column has a default value.

Is a shortcut for matching against the parameter binding.

Source

pub fn is_auto_incremented(&self) -> bool

Returns true if the column is auto-incremented.

Source

pub fn is_array_type(&self) -> bool

Returns true if the parameter is of array type

Source

pub fn type_id(&self) -> TypeId

Returns the type id of the parameter.

Source

pub fn scale(&self) -> i16

Scale.

Source

pub fn precision(&self) -> i16

Precision.

Source

pub fn direction(&self) -> ParameterDirection

Describes whether a parameter is used for input, output, or both.

Source

pub fn name(&self) -> Option<&str>

Returns the name of the parameter.

Source

pub fn parse_value<S>(&self, s: S) -> Result<HdbValue<'static>, HdbError>
where S: AsRef<str>,

Parse an HdbValue from a String.

§Errors

HdbError::Deserialization if parsing fails.

Trait Implementations§

Source§

impl Clone for ParameterDescriptor

Source§

fn clone(&self) -> ParameterDescriptor

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl DbvFactory for &ParameterDescriptor

Source§

type DBV = HdbValue<'static>

The type of the database objects.
Source§

fn serialize_bool( &self, value: bool, ) -> Result<HdbValue<'static>, SerializationError>

Serialize a bool. Read more
Source§

fn serialize_i8( &self, value: i8, ) -> Result<HdbValue<'static>, SerializationError>

Serialize an i8. Read more
Source§

fn serialize_i16( &self, value: i16, ) -> Result<HdbValue<'static>, SerializationError>

Serialize an i16. Read more
Source§

fn serialize_i32( &self, value: i32, ) -> Result<HdbValue<'static>, SerializationError>

Serialize an i32. Read more
Source§

fn serialize_i64( &self, value: i64, ) -> Result<HdbValue<'static>, SerializationError>

Serialize an i64. Read more
Source§

fn serialize_u8( &self, value: u8, ) -> Result<HdbValue<'static>, SerializationError>

Serialize an u8. Read more
Source§

fn serialize_u16( &self, value: u16, ) -> Result<HdbValue<'static>, SerializationError>

Serialize an u16. Read more
Source§

fn serialize_u32( &self, value: u32, ) -> Result<HdbValue<'static>, SerializationError>

Serialize an u32. Read more
Source§

fn serialize_u64( &self, value: u64, ) -> Result<HdbValue<'static>, SerializationError>

Serialize an u64. Read more
Source§

fn serialize_f32( &self, value: f32, ) -> Result<HdbValue<'static>, SerializationError>

Serialize an f32. Read more
Source§

fn serialize_f64( &self, value: f64, ) -> Result<HdbValue<'static>, SerializationError>

Serialize an f64. Read more
Source§

fn serialize_char( &self, value: char, ) -> Result<HdbValue<'static>, SerializationError>

Serialize a char. Read more
Source§

fn serialize_str( &self, value: &str, ) -> Result<HdbValue<'static>, SerializationError>

Serialize a str. Read more
Source§

fn serialize_bytes( &self, value: &[u8], ) -> Result<HdbValue<'static>, SerializationError>

Serialize bytes. Read more
Source§

fn serialize_none(&self) -> Result<HdbValue<'static>, SerializationError>

Serialize a none. Read more
Source§

fn descriptor(&self) -> String

Provide a descriptive String of the type that is required (for error messages).
Source§

impl Debug for ParameterDescriptor

Source§

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

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

impl Display for ParameterDescriptor

Source§

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

Formats the value using the given formatter. Read more

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> 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> Same for T

Source§

type Output = T

Should always be Self
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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> ErasedDestructor for T
where T: 'static,