pub struct CreateFunctionOwnedView(/* private fields */);Expand description
Self-contained, 'static owned view of a CreateFunction message.
Wraps ::buffa::OwnedView<CreateFunctionView<'static>>: the decoded view and the ::buffa::bytes::Bytes buffer it borrows from travel together, so the handle is 'static and Send + Sync — suitable for async handlers, spawned tasks, and anywhere a 'static bound is required.
Field accessors return borrows tied to &self. Use Self::view to get the full CreateFunctionView when you need struct patterns, iteration helpers, or to pass the view to lifetime-parameterised code.
Implementations§
Source§impl CreateFunctionOwnedView
impl CreateFunctionOwnedView
Sourcepub fn decode(bytes: Bytes) -> Result<Self, DecodeError>
pub fn decode(bytes: Bytes) -> Result<Self, DecodeError>
Decode an owned view from a ::buffa::bytes::Bytes buffer.
The view borrows directly from the buffer’s data; the buffer is retained inside the returned handle.
§Errors
Returns ::buffa::DecodeError if the buffer contains invalid
protobuf data.
Sourcepub fn decode_with_options(
bytes: Bytes,
opts: &DecodeOptions,
) -> Result<Self, DecodeError>
pub fn decode_with_options( bytes: Bytes, opts: &DecodeOptions, ) -> Result<Self, DecodeError>
Decode with custom ::buffa::DecodeOptions (recursion limit,
max message size).
§Errors
Returns ::buffa::DecodeError if the buffer is invalid or
exceeds the configured limits.
Sourcepub fn from_owned(msg: &CreateFunction) -> Result<Self, DecodeError>
pub fn from_owned(msg: &CreateFunction) -> Result<Self, DecodeError>
Build from an owned message via an encode → decode round-trip.
§Errors
Returns ::buffa::DecodeError if the re-encoded bytes are
somehow invalid (should not happen for well-formed messages).
Sourcepub fn view(&self) -> &CreateFunctionView<'_>
pub fn view(&self) -> &CreateFunctionView<'_>
Borrow the full CreateFunctionView with its lifetime tied to &self.
Sourcepub fn to_owned_message(&self) -> CreateFunction
pub fn to_owned_message(&self) -> CreateFunction
Convert to the owned message type.
Sourcepub fn into_bytes(self) -> Bytes
pub fn into_bytes(self) -> Bytes
Consume the handle, returning the underlying bytes buffer.
Sourcepub fn catalog_name(&self) -> &str
pub fn catalog_name(&self) -> &str
Name of parent catalog.
Field 2: catalog_name
Sourcepub fn schema_name(&self) -> &str
pub fn schema_name(&self) -> &str
Name of parent schema.
Field 3: schema_name
Sourcepub fn data_type(&self) -> &str
pub fn data_type(&self) -> &str
Full data type specification of the return type of the function.
Field 4: data_type
Sourcepub fn full_data_type(&self) -> &str
pub fn full_data_type(&self) -> &str
Full data type specification as SQL/catalogString text.
Field 5: full_data_type
Sourcepub fn input_params(&self) -> &MessageFieldView<FunctionParameterInfosView<'_>>
pub fn input_params(&self) -> &MessageFieldView<FunctionParameterInfosView<'_>>
The array of function parameter infos.
Field 6: input_params
Sourcepub fn parameter_style(&self) -> EnumValue<ParameterStyle>
pub fn parameter_style(&self) -> EnumValue<ParameterStyle>
The parameter-passing style.
Field 7: parameter_style
Sourcepub fn is_deterministic(&self) -> bool
pub fn is_deterministic(&self) -> bool
Indicates whether the function is deterministic.
Field 8: is_deterministic
Sourcepub fn sql_data_access(&self) -> EnumValue<SqlDataAccess>
pub fn sql_data_access(&self) -> EnumValue<SqlDataAccess>
SQL data access information.
Field 9: sql_data_access
Sourcepub fn is_null_call(&self) -> bool
pub fn is_null_call(&self) -> bool
Indicates whether the function is null-calling.
Field 10: is_null_call
Sourcepub fn security_type(&self) -> EnumValue<SecurityType>
pub fn security_type(&self) -> EnumValue<SecurityType>
The security type of the function.
Field 11: security_type
Sourcepub fn routine_body(&self) -> EnumValue<RoutineBody>
pub fn routine_body(&self) -> EnumValue<RoutineBody>
The routine body.
Field 12: routine_body
Sourcepub fn routine_definition(&self) -> Option<&str>
pub fn routine_definition(&self) -> Option<&str>
Function body.
Field 13: routine_definition
Sourcepub fn routine_body_language(&self) -> Option<&str>
pub fn routine_body_language(&self) -> Option<&str>
The language of the function routine body.
Field 14: routine_body_language
Sourcepub fn comment(&self) -> Option<&str>
pub fn comment(&self) -> Option<&str>
User-provided free-form text description.
Field 15: comment
Sourcepub fn properties(&self) -> &MapView<'_, &str, &str>
pub fn properties(&self) -> &MapView<'_, &str, &str>
A map of key-value properties attached to the securable.
Field 16: properties (map)
Trait Implementations§
Source§impl AsRef<OwnedView<CreateFunctionView<'static>>> for CreateFunctionOwnedView
impl AsRef<OwnedView<CreateFunctionView<'static>>> for CreateFunctionOwnedView
Source§fn as_ref(&self) -> &OwnedView<CreateFunctionView<'static>>
fn as_ref(&self) -> &OwnedView<CreateFunctionView<'static>>
Source§impl Clone for CreateFunctionOwnedView
impl Clone for CreateFunctionOwnedView
Source§fn clone(&self) -> CreateFunctionOwnedView
fn clone(&self) -> CreateFunctionOwnedView
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more