pub struct FunctionView<'a> {Show 27 fields
pub name: &'a str,
pub catalog_name: &'a str,
pub schema_name: &'a str,
pub full_name: &'a str,
pub data_type: &'a str,
pub full_data_type: &'a str,
pub input_params: MessageFieldView<FunctionParameterInfosView<'a>>,
pub return_params: Option<&'a str>,
pub routine_body_language: Option<&'a str>,
pub routine_definition: Option<&'a str>,
pub routine_dependencies: Option<&'a str>,
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<&'a str>,
pub routine_body: EnumValue<RoutineBody>,
pub comment: Option<&'a str>,
pub properties: MapView<'a, &'a str, &'a str>,
pub owner: Option<&'a str>,
pub function_id: Option<&'a str>,
pub created_at: Option<i64>,
pub created_by: Option<&'a str>,
pub updated_at: Option<i64>,
pub updated_by: Option<&'a str>,
pub __buffa_unknown_fields: UnknownFieldsView<'a>,
}Expand description
A User-Defined Function (UDF) registered under a catalog + schema hierarchy.
Fields§
§name: &'a strName of function, relative to parent schema.
Field 1: name
catalog_name: &'a strName of parent catalog.
Field 2: catalog_name
schema_name: &'a strName of parent schema.
Field 3: schema_name
full_name: &'a strThe three-level (fully qualified) name of the function.
Format: catalog_name.schema_name.function_name
Field 4: full_name
data_type: &'a strFull data type specification of the return type of the function.
Field 5: data_type
full_data_type: &'a strFull data type specification as SQL/catalogString text.
Field 6: full_data_type
input_params: MessageFieldView<FunctionParameterInfosView<'a>>The array of function parameter infos.
Field 7: input_params
return_params: Option<&'a str>The return type of the function in JSON format.
Field 8: return_params
routine_body_language: Option<&'a str>The language of the function routine body.
Field 9: routine_body_language
routine_definition: Option<&'a str>Function body.
Field 10: routine_definition
routine_dependencies: Option<&'a str>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<&'a str>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<&'a str>User-provided free-form text description.
Field 19: comment
properties: MapView<'a, &'a str, &'a str>A map of key-value properties attached to the securable.
Field 20: properties (map)
owner: Option<&'a str>Username of current owner of the function.
Field 21: owner
function_id: Option<&'a str>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<&'a str>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<&'a str>Username of user who last modified the function.
Field 1003: updated_by
__buffa_unknown_fields: UnknownFieldsView<'a>Trait Implementations§
Source§impl<'a> Clone for FunctionView<'a>
impl<'a> Clone for FunctionView<'a>
Source§fn clone(&self) -> FunctionView<'a>
fn clone(&self) -> FunctionView<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> Debug for FunctionView<'a>
impl<'a> Debug for FunctionView<'a>
Source§impl<'a> Default for FunctionView<'a>
impl<'a> Default for FunctionView<'a>
Source§fn default() -> FunctionView<'a>
fn default() -> FunctionView<'a>
Source§impl<'v> DefaultViewInstance for FunctionView<'v>
impl<'v> DefaultViewInstance for FunctionView<'v>
Source§fn default_view_instance<'a>() -> &'a Selfwhere
Self: 'a,
fn default_view_instance<'a>() -> &'a Selfwhere
Self: 'a,
Source§impl<'a> MessageName for FunctionView<'a>
impl<'a> MessageName for FunctionView<'a>
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 moreSource§impl<'a> MessageView<'a> for FunctionView<'a>
impl<'a> MessageView<'a> for FunctionView<'a>
Source§fn decode_view(buf: &'a [u8]) -> Result<Self, DecodeError>
fn decode_view(buf: &'a [u8]) -> Result<Self, DecodeError>
Source§fn decode_view_with_limit(
buf: &'a [u8],
depth: u32,
) -> Result<Self, DecodeError>
fn decode_view_with_limit( buf: &'a [u8], depth: u32, ) -> Result<Self, DecodeError>
Source§fn to_owned_message(&self) -> Function
fn to_owned_message(&self) -> Function
Source§impl<'__a> Serialize for FunctionView<'__a>
Serializes this view as protobuf JSON.
impl<'__a> Serialize for FunctionView<'__a>
Serializes this view as protobuf JSON.
Implicit-presence fields with default values are omitted, required
fields are always emitted, explicit-presence (optional) fields are
emitted only when set, bytes fields are base64-encoded, and enum
values are their proto name strings.
This impl uses serialize_map(None) because the number of emitted
fields depends on default-omission rules; serializers that require
known map lengths (e.g. bincode) will return a runtime error.
Use the owned message type for those formats.
Source§impl<'a> ViewEncode<'a> for FunctionView<'a>
impl<'a> ViewEncode<'a> for FunctionView<'a>
Source§fn compute_size(&self, __cache: &mut SizeCache) -> u32
fn compute_size(&self, __cache: &mut SizeCache) -> u32
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 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.Source§impl ViewReborrow for FunctionView<'static>
impl ViewReborrow for FunctionView<'static>
Source§type Reborrowed<'b> = FunctionView<'b>
type Reborrowed<'b> = FunctionView<'b>
'b.Source§fn reborrow<'b>(this: &'b Self) -> &'b Self::Reborrowed<'b>
fn reborrow<'b>(this: &'b Self) -> &'b Self::Reborrowed<'b>
&'b Self (= &'b FooView<'static>) to
&'b Self::Reborrowed<'b> (= &'b FooView<'b>). The canonical body
is just this; the compiler accepts it via standard lifetime
variance for covariant view types. Read more