pub struct UserDefinedFunction {Show 14 fields
pub children: Vec<ExprNode>,
pub name: String,
pub arg_names: Vec<String>,
pub arg_types: Vec<DataType>,
pub language: String,
pub link: Option<String>,
pub identifier: Option<String>,
pub body: Option<String>,
pub compressed_binary: Option<Vec<u8>>,
pub always_retry_on_network_error: bool,
pub runtime: Option<String>,
pub is_async: Option<bool>,
pub is_batched: Option<bool>,
pub version: i32,
}
Fields§
§children: Vec<ExprNode>
§name: String
§arg_names: Vec<String>
§arg_types: Vec<DataType>
§language: String
§link: Option<String>
The link to the external function service.
identifier: Option<String>
This is re-interpreted as name_in_runtime
.
body: Option<String>
- If
language
isjavascript
orpython
, the source code of the function.
compressed_binary: Option<Vec<u8>>
- If
language
isrust
orwasm
, the zstd-compressed wasm binary.
always_retry_on_network_error: bool
§runtime: Option<String>
The runtime selected when multiple runtimes are available for the language. Now is not used.
is_async: Option<bool>
additional options for javascript functions
is_batched: Option<bool>
§version: i32
Implementations§
Source§impl UserDefinedFunction
impl UserDefinedFunction
Sourcepub fn identifier(&self) -> &str
pub fn identifier(&self) -> &str
Returns the value of identifier
, or the default value if identifier
is unset.
Sourcepub fn compressed_binary(&self) -> &[u8] ⓘ
pub fn compressed_binary(&self) -> &[u8] ⓘ
Returns the value of compressed_binary
, or the default value if compressed_binary
is unset.
Sourcepub fn runtime(&self) -> &str
pub fn runtime(&self) -> &str
Returns the value of runtime
, or the default value if runtime
is unset.
Sourcepub fn is_async(&self) -> bool
pub fn is_async(&self) -> bool
Returns the value of is_async
, or the default value if is_async
is unset.
Sourcepub fn is_batched(&self) -> bool
pub fn is_batched(&self) -> bool
Returns the value of is_batched
, or the default value if is_batched
is unset.
Sourcepub fn version(&self) -> UdfExprVersion
pub fn version(&self) -> UdfExprVersion
Returns the enum value of version
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_version(&mut self, value: UdfExprVersion)
pub fn set_version(&mut self, value: UdfExprVersion)
Sets version
to the provided enum value.
Source§impl UserDefinedFunction
impl UserDefinedFunction
pub fn get_children(&self) -> &Vec<ExprNode>
pub fn get_name(&self) -> &String
pub fn get_arg_names(&self) -> &Vec<String>
pub fn get_arg_types(&self) -> &Vec<DataType>
pub fn get_language(&self) -> &String
pub fn get_link(&self) -> Result<&String, PbFieldNotFound>
pub fn get_identifier(&self) -> Result<&String, PbFieldNotFound>
pub fn get_body(&self) -> Result<&String, PbFieldNotFound>
pub fn get_compressed_binary(&self) -> Result<&Vec<u8>, PbFieldNotFound>
pub fn get_always_retry_on_network_error(&self) -> bool
pub fn get_runtime(&self) -> Result<&String, PbFieldNotFound>
pub fn get_is_async(&self) -> Result<&bool, PbFieldNotFound>
pub fn get_is_batched(&self) -> Result<&bool, PbFieldNotFound>
pub fn get_version(&self) -> Result<UdfExprVersion, PbFieldNotFound>
Source§impl UserDefinedFunction
impl UserDefinedFunction
pub fn name_in_runtime(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for UserDefinedFunction
impl Clone for UserDefinedFunction
Source§fn clone(&self) -> UserDefinedFunction
fn clone(&self) -> UserDefinedFunction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UserDefinedFunction
impl Debug for UserDefinedFunction
Source§impl Default for UserDefinedFunction
impl Default for UserDefinedFunction
Source§impl<'de> Deserialize<'de> for UserDefinedFunction
impl<'de> Deserialize<'de> for UserDefinedFunction
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for UserDefinedFunction
impl Hash for UserDefinedFunction
Source§impl Message for UserDefinedFunction
impl Message for UserDefinedFunction
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for UserDefinedFunction
impl PartialEq for UserDefinedFunction
Source§impl Serialize for UserDefinedFunction
impl Serialize for UserDefinedFunction
impl Eq for UserDefinedFunction
impl StructuralPartialEq for UserDefinedFunction
Auto Trait Implementations§
impl Freeze for UserDefinedFunction
impl RefUnwindSafe for UserDefinedFunction
impl Send for UserDefinedFunction
impl Sync for UserDefinedFunction
impl Unpin for UserDefinedFunction
impl UnwindSafe for UserDefinedFunction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request