pub struct Function {Show 26 fields
pub name: String,
pub catalog_name: String,
pub schema_name: String,
pub full_name: String,
pub data_type: String,
pub full_data_type: String,
pub input_params: MessageField<FunctionParameterInfos>,
pub return_params: Option<String>,
pub routine_body_language: Option<String>,
pub routine_definition: Option<String>,
pub routine_dependencies: Option<String>,
pub parameter_style: EnumValue<ParameterStyle>,
pub is_deterministic: bool,
pub sql_data_access: EnumValue<SqlDataAccess>,
pub is_null_call: bool,
pub security_type: EnumValue<SecurityType>,
pub specific_name: Option<String>,
pub routine_body: EnumValue<RoutineBody>,
pub comment: Option<String>,
pub properties: HashMap<String, String>,
pub owner: Option<String>,
pub function_id: Option<String>,
pub created_at: Option<i64>,
pub created_by: Option<String>,
pub updated_at: Option<i64>,
pub updated_by: Option<String>,
/* private fields */
}Expand description
A User-Defined Function (UDF) registered under a catalog + schema hierarchy.
Fields§
§name: StringName of function, relative to parent schema.
Field 1: name
catalog_name: StringName of parent catalog.
Field 2: catalog_name
schema_name: StringName of parent schema.
Field 3: schema_name
full_name: StringThe three-level (fully qualified) name of the function.
Format: catalog_name.schema_name.function_name
Field 4: full_name
data_type: StringFull data type specification of the return type of the function.
Field 5: data_type
full_data_type: StringFull data type specification as SQL/catalogString text.
Field 6: full_data_type
input_params: MessageField<FunctionParameterInfos>The array of function parameter infos.
Field 7: input_params
return_params: Option<String>The return type of the function in JSON format.
Field 8: return_params
routine_body_language: Option<String>The language of the function routine body.
Field 9: routine_body_language
routine_definition: Option<String>Function body.
Field 10: routine_definition
routine_dependencies: Option<String>Function dependencies (in JSON form).
Field 11: routine_dependencies
parameter_style: EnumValue<ParameterStyle>The parameter-passing style.
Field 12: parameter_style
is_deterministic: boolIndicates whether the function is deterministic.
Field 13: is_deterministic
sql_data_access: EnumValue<SqlDataAccess>SQL data access information.
Field 14: sql_data_access
is_null_call: boolIndicates whether the function is null-calling.
Field 15: is_null_call
security_type: EnumValue<SecurityType>The security type of the function.
Field 16: security_type
specific_name: Option<String>The type of the function (SCALAR or TABLE).
Field 17: specific_name
routine_body: EnumValue<RoutineBody>The routine body.
Field 18: routine_body
comment: Option<String>User-provided free-form text description.
Field 19: comment
properties: HashMap<String, String>A map of key-value properties attached to the securable.
Field 20: properties
owner: Option<String>Username of current owner of the function.
Field 21: owner
function_id: Option<String>Unique identifier for the function.
Field 22: function_id
created_at: Option<i64>Time at which this function was created, in epoch milliseconds.
Field 1000: created_at
created_by: Option<String>Username of function creator.
Field 1001: created_by
updated_at: Option<i64>Time at which this function was last updated, in epoch milliseconds.
Field 1002: updated_at
updated_by: Option<String>Username of user who last modified the function.
Field 1003: updated_by
Implementations§
Source§impl Function
impl Function
Sourcepub fn qualified_name(&self) -> String
pub fn qualified_name(&self) -> String
Returns the fully-qualified dot-separated name computed from component fields.
Source§impl Function
impl Function
Sourcepub fn with_return_params(self, value: impl Into<String>) -> Self
pub fn with_return_params(self, value: impl Into<String>) -> Self
Sets Self::return_params to Some(value), consuming and returning self.
Sourcepub fn with_routine_body_language(self, value: impl Into<String>) -> Self
pub fn with_routine_body_language(self, value: impl Into<String>) -> Self
Sets Self::routine_body_language to Some(value), consuming and returning self.
Sourcepub fn with_routine_definition(self, value: impl Into<String>) -> Self
pub fn with_routine_definition(self, value: impl Into<String>) -> Self
Sets Self::routine_definition to Some(value), consuming and returning self.
Sourcepub fn with_routine_dependencies(self, value: impl Into<String>) -> Self
pub fn with_routine_dependencies(self, value: impl Into<String>) -> Self
Sets Self::routine_dependencies to Some(value), consuming and returning self.
Sourcepub fn with_specific_name(self, value: impl Into<String>) -> Self
pub fn with_specific_name(self, value: impl Into<String>) -> Self
Sets Self::specific_name 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.
Sourcepub fn with_owner(self, value: impl Into<String>) -> Self
pub fn with_owner(self, value: impl Into<String>) -> Self
Sets Self::owner to Some(value), consuming and returning self.
Sourcepub fn with_function_id(self, value: impl Into<String>) -> Self
pub fn with_function_id(self, value: impl Into<String>) -> Self
Sets Self::function_id to Some(value), consuming and returning self.
Sourcepub fn with_created_at(self, value: i64) -> Self
pub fn with_created_at(self, value: i64) -> Self
Sets Self::created_at to Some(value), consuming and returning self.
Sourcepub fn with_created_by(self, value: impl Into<String>) -> Self
pub fn with_created_by(self, value: impl Into<String>) -> Self
Sets Self::created_by to Some(value), consuming and returning self.
Sourcepub fn with_updated_at(self, value: i64) -> Self
pub fn with_updated_at(self, value: i64) -> Self
Sets Self::updated_at to Some(value), consuming and returning self.
Sourcepub fn with_updated_by(self, value: impl Into<String>) -> Self
pub fn with_updated_by(self, value: impl Into<String>) -> Self
Sets Self::updated_by to Some(value), consuming and returning self.
Trait Implementations§
Source§impl DefaultInstance for Function
impl DefaultInstance for Function
Source§fn default_instance() -> &'static Self
fn default_instance() -> &'static Self
Source§impl<'de> Deserialize<'de> for Function
impl<'de> Deserialize<'de> for Function
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 Function
impl ExtensionSet for Function
Source§const PROTO_FQN: &'static str = "unitycatalog.functions.v1.Function"
const PROTO_FQN: &'static str = "unitycatalog.functions.v1.Function"
"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 Function
impl HasMessageView for Function
Source§type View<'a> = FunctionView<'a>
type View<'a> = FunctionView<'a>
Self, borrowing from a buffer with lifetime
'a.Source§type ViewHandle = FunctionOwnedView
type ViewHandle = FunctionOwnedView
'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 Function
impl Message for Function
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 Function
impl MessageName for Function
Source§const PACKAGE: &'static str = "unitycatalog.functions.v1"
const PACKAGE: &'static str = "unitycatalog.functions.v1"
Source§const NAME: &'static str = "Function"
const NAME: &'static str = "Function"
. between nesting levels. Read more