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 copy 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

§

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> 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

§

type Output = T

Should always be Self
source§

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

§

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§

default 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>,

§

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>,

§

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.
§

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

§

fn vzip(self) -> V