pub struct FunctionParameterInfo {
pub name: String,
pub type_text: String,
pub type_json: Option<String>,
pub type_name: EnumValue<ColumnTypeName>,
pub type_precision: Option<i32>,
pub type_scale: Option<i32>,
pub type_interval_type: Option<String>,
pub position: Option<i32>,
pub parameter_mode: EnumValue<ParameterMode>,
pub parameter_type: EnumValue<FunctionParameterType>,
pub parameter_default: Option<String>,
pub comment: Option<String>,
/* private fields */
}Expand description
Information about a single function parameter.
Fields§
§name: StringName of parameter.
Field 1: name
type_text: StringFull data type specification as SQL/catalogString text.
Field 2: type_text
type_json: Option<String>Full data type specification, JSON-serialized.
Field 3: type_json
type_name: EnumValue<ColumnTypeName>Data type name.
Field 4: type_name
type_precision: Option<i32>Digits of precision; required for DecimalTypes.
Field 5: type_precision
type_scale: Option<i32>Digits to right of decimal; required for DecimalTypes.
Field 6: type_scale
type_interval_type: Option<String>Format of IntervalType.
Field 7: type_interval_type
position: Option<i32>Ordinal position of column (starting at position 0).
Field 8: position
parameter_mode: EnumValue<ParameterMode>The mode of the function parameter.
Field 9: parameter_mode
parameter_type: EnumValue<FunctionParameterType>The type of function parameter.
Field 10: parameter_type
parameter_default: Option<String>Default value of the parameter.
Field 11: parameter_default
comment: Option<String>User-provided free-form text description.
Field 12: comment
Implementations§
Source§impl FunctionParameterInfo
impl FunctionParameterInfo
Sourcepub fn with_type_json(self, value: impl Into<String>) -> Self
pub fn with_type_json(self, value: impl Into<String>) -> Self
Sets Self::type_json to Some(value), consuming and returning self.
Sourcepub fn with_type_precision(self, value: i32) -> Self
pub fn with_type_precision(self, value: i32) -> Self
Sets Self::type_precision to Some(value), consuming and returning self.
Sourcepub fn with_type_scale(self, value: i32) -> Self
pub fn with_type_scale(self, value: i32) -> Self
Sets Self::type_scale to Some(value), consuming and returning self.
Sourcepub fn with_type_interval_type(self, value: impl Into<String>) -> Self
pub fn with_type_interval_type(self, value: impl Into<String>) -> Self
Sets Self::type_interval_type to Some(value), consuming and returning self.
Sourcepub fn with_position(self, value: i32) -> Self
pub fn with_position(self, value: i32) -> Self
Sets Self::position to Some(value), consuming and returning self.
Sourcepub fn with_parameter_default(self, value: impl Into<String>) -> Self
pub fn with_parameter_default(self, value: impl Into<String>) -> Self
Sets Self::parameter_default to Some(value), consuming and returning self.
Sourcepub fn with_comment(self, value: impl Into<String>) -> Self
pub fn with_comment(self, value: impl Into<String>) -> Self
Sets Self::comment to Some(value), consuming and returning self.
Trait Implementations§
Source§impl Clone for FunctionParameterInfo
impl Clone for FunctionParameterInfo
Source§fn clone(&self) -> FunctionParameterInfo
fn clone(&self) -> FunctionParameterInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FunctionParameterInfo
impl Debug for FunctionParameterInfo
Source§impl Default for FunctionParameterInfo
impl Default for FunctionParameterInfo
Source§fn default() -> FunctionParameterInfo
fn default() -> FunctionParameterInfo
Source§impl DefaultInstance for FunctionParameterInfo
impl DefaultInstance for FunctionParameterInfo
Source§fn default_instance() -> &'static Self
fn default_instance() -> &'static Self
Source§impl<'de> Deserialize<'de> for FunctionParameterInfowhere
FunctionParameterInfo: Default,
impl<'de> Deserialize<'de> for FunctionParameterInfowhere
FunctionParameterInfo: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl ExtensionSet for FunctionParameterInfo
impl ExtensionSet for FunctionParameterInfo
Source§const PROTO_FQN: &'static str = "unitycatalog.functions.v1.FunctionParameterInfo"
const PROTO_FQN: &'static str = "unitycatalog.functions.v1.FunctionParameterInfo"
"google.protobuf.FieldOptions". Read moreSource§fn unknown_fields(&self) -> &UnknownFields
fn unknown_fields(&self) -> &UnknownFields
Source§fn unknown_fields_mut(&mut self) -> &mut UnknownFields
fn unknown_fields_mut(&mut self) -> &mut UnknownFields
Source§fn extension<C>(&self, ext: &Extension<C>) -> <C as ExtensionCodec>::Outputwhere
C: ExtensionCodec,
fn extension<C>(&self, ext: &Extension<C>) -> <C as ExtensionCodec>::Outputwhere
C: ExtensionCodec,
Source§fn set_extension<C>(
&mut self,
ext: &Extension<C>,
value: <C as ExtensionCodec>::Value,
)where
C: ExtensionCodec,
fn set_extension<C>(
&mut self,
ext: &Extension<C>,
value: <C as ExtensionCodec>::Value,
)where
C: ExtensionCodec,
Source§fn has_extension<C>(&self, ext: &Extension<C>) -> boolwhere
C: ExtensionCodec,
fn has_extension<C>(&self, ext: &Extension<C>) -> boolwhere
C: ExtensionCodec,
true if any record at the extension’s field number is present. Read moreSource§fn clear_extension<C>(&mut self, ext: &Extension<C>)where
C: ExtensionCodec,
fn clear_extension<C>(&mut self, ext: &Extension<C>)where
C: ExtensionCodec,
Source§fn extension_or_default<C>(
&self,
ext: &Extension<C>,
) -> <C as ExtensionCodec>::Valuewhere
C: ExtensionCodec<Output = Option<<C as ExtensionCodec>::Value>>,
<C as ExtensionCodec>::Value: Default,
fn extension_or_default<C>(
&self,
ext: &Extension<C>,
) -> <C as ExtensionCodec>::Valuewhere
C: ExtensionCodec<Output = Option<<C as ExtensionCodec>::Value>>,
<C as ExtensionCodec>::Value: Default,
[default = ...]
value if absent, or the type’s Default if no proto default was declared. Read moreSource§impl HasMessageView for FunctionParameterInfo
impl HasMessageView for FunctionParameterInfo
Source§type View<'a> = FunctionParameterInfoView<'a>
type View<'a> = FunctionParameterInfoView<'a>
Self, borrowing from a buffer with lifetime
'a.Source§type ViewHandle = FunctionParameterInfoOwnedView
type ViewHandle = FunctionParameterInfoOwnedView
'static owned-view handle for Self
(FooOwnedView).Source§fn decode_view_handle(bytes: Bytes) -> Result<Self::ViewHandle, DecodeError>
fn decode_view_handle(bytes: Bytes) -> Result<Self::ViewHandle, DecodeError>
Source§fn decode_view_handle_with_options(
bytes: Bytes,
opts: &DecodeOptions,
) -> Result<Self::ViewHandle, DecodeError>
fn decode_view_handle_with_options( bytes: Bytes, opts: &DecodeOptions, ) -> Result<Self::ViewHandle, DecodeError>
Source§impl Message for FunctionParameterInfo
impl Message for FunctionParameterInfo
Source§fn compute_size(&self, _cache: &mut SizeCache) -> u32
fn compute_size(&self, _cache: &mut SizeCache) -> u32
Returns the total encoded size in bytes.
The result is a u32; the protobuf specification requires all
messages to fit within 2 GiB (2,147,483,647 bytes), so a
compliant message will never overflow this type.
Source§fn write_to(&self, _cache: &mut SizeCache, buf: &mut impl BufMut)
fn write_to(&self, _cache: &mut SizeCache, buf: &mut impl BufMut)
cache (populated by a prior
compute_size call on the same cache). Read moreSource§fn merge_field(
&mut self,
tag: Tag,
buf: &mut impl Buf,
depth: u32,
) -> Result<(), DecodeError>
fn merge_field( &mut self, tag: Tag, buf: &mut impl Buf, depth: u32, ) -> Result<(), DecodeError>
buf. Read moreSource§fn encode(&self, buf: &mut impl BufMut)
fn encode(&self, buf: &mut impl BufMut)
Source§fn encode_with_cache(&self, cache: &mut SizeCache, buf: &mut impl BufMut)
fn encode_with_cache(&self, cache: &mut SizeCache, buf: &mut impl BufMut)
SizeCache, for
reuse across many encodes in a hot loop. Clears the cache first.Source§fn encoded_len(&self) -> u32
fn encoded_len(&self) -> u32
Source§fn encode_length_delimited(&self, buf: &mut impl BufMut)
fn encode_length_delimited(&self, buf: &mut impl BufMut)
Source§fn encode_to_bytes(&self) -> Bytes
fn encode_to_bytes(&self) -> Bytes
bytes::Bytes. Read moreSource§fn decode(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
fn decode(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
Source§fn decode_from_slice(data: &[u8]) -> Result<Self, DecodeError>where
Self: Sized,
fn decode_from_slice(data: &[u8]) -> Result<Self, DecodeError>where
Self: Sized,
Source§fn decode_length_delimited(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
fn decode_length_delimited(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
Source§fn merge_to_limit(
&mut self,
buf: &mut impl Buf,
depth: u32,
limit: usize,
) -> Result<(), DecodeError>
fn merge_to_limit( &mut self, buf: &mut impl Buf, depth: u32, limit: usize, ) -> Result<(), DecodeError>
Source§fn merge_group(
&mut self,
buf: &mut impl Buf,
depth: u32,
field_number: u32,
) -> Result<(), DecodeError>
fn merge_group( &mut self, buf: &mut impl Buf, depth: u32, field_number: u32, ) -> Result<(), DecodeError>
buf, reading fields until an
EndGroup tag with the given field_number is encountered. Read moreSource§fn merge(&mut self, buf: &mut impl Buf, depth: u32) -> Result<(), DecodeError>
fn merge(&mut self, buf: &mut impl Buf, depth: u32) -> Result<(), DecodeError>
Source§fn merge_from_slice(&mut self, data: &[u8]) -> Result<(), DecodeError>
fn merge_from_slice(&mut self, data: &[u8]) -> Result<(), DecodeError>
Source§fn merge_length_delimited(
&mut self,
buf: &mut impl Buf,
depth: u32,
) -> Result<(), DecodeError>
fn merge_length_delimited( &mut self, buf: &mut impl Buf, depth: u32, ) -> Result<(), DecodeError>
Source§impl MessageName for FunctionParameterInfo
impl MessageName for FunctionParameterInfo
Source§const PACKAGE: &'static str = "unitycatalog.functions.v1"
const PACKAGE: &'static str = "unitycatalog.functions.v1"
Source§const NAME: &'static str = "FunctionParameterInfo"
const NAME: &'static str = "FunctionParameterInfo"
. between nesting levels. Read more