[][src]Struct hdbconnect::ParameterDescriptor

pub struct ParameterDescriptor { /* fields omitted */ }

Metadata for a parameter.

Implementations

impl ParameterDescriptor[src]

pub fn binding(&self) -> ParameterBinding[src]

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

pub fn is_nullable(&self) -> bool[src]

Returns true if the column can contain NULL values.

Is a shortcut for matching against the parameter binding.

pub fn has_default(&self) -> bool[src]

Returns true if the column has a default value.

Is a shortcut for matching against the parameter binding.

pub fn is_auto_incremented(&self) -> bool[src]

Returns true if the column is auto-incremented.

pub fn is_array_type(&self) -> bool[src]

Returns true if the parameter is of array type

pub fn type_id(&self) -> TypeId[src]

Returns the type id of the parameter.

pub fn nullable(&self) -> bool[src]

👎 Deprecated since 0.22.1:

use ParameterDescriptor::is_nullable()

Tells if the parameter can be NULL.

pub fn scale(&self) -> i16[src]

Scale.

pub fn precision(&self) -> i16[src]

Precision.

pub fn direction(&self) -> ParameterDirection[src]

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

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

Returns the name of the parameter.

pub fn parse_value<S: AsRef<str>>(&self, s: S) -> HdbResult<HdbValue<'static>>[src]

Parse an HdbValue from a String.

Errors

HdbError::Deserialization if parsing fails.

Trait Implementations

impl Clone for ParameterDescriptor[src]

impl DbvFactory for &ParameterDescriptor[src]

type DBV = HdbValue<'static>

The type of the database objects.

impl Debug for ParameterDescriptor[src]

impl Display for ParameterDescriptor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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