#[non_exhaustive]pub struct UserDefinedFunctionResource {
pub resource_uri: Option<StringValue>,
pub inline_code: Option<StringValue>,
/* private fields */
}Expand description
This is used for defining User Defined Function (UDF) resources only when using legacy SQL. Users of GoogleSQL should leverage either DDL (e.g. CREATE [TEMPORARY] FUNCTION … ) or the Routines API to define UDF resources.
For additional information on migrating, see: https://cloud.google.com/bigquery/docs/reference/standard-sql/migrating-from-legacy-sql#differences_in_user-defined_javascript_functions
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.resource_uri: Option<StringValue>[Pick one] A code resource to load from a Google Cloud Storage URI (gs://bucket/path).
inline_code: Option<StringValue>[Pick one] An inline resource that contains code for a user-defined function (UDF). Providing a inline code resource is equivalent to providing a URI for a file containing the same code.
Implementations§
Source§impl UserDefinedFunctionResource
impl UserDefinedFunctionResource
Sourcepub fn set_resource_uri<T>(self, v: T) -> Selfwhere
T: Into<StringValue>,
pub fn set_resource_uri<T>(self, v: T) -> Selfwhere
T: Into<StringValue>,
Sets the value of resource_uri.
§Example
use wkt::StringValue;
let x = UserDefinedFunctionResource::new().set_resource_uri(StringValue::default()/* use setters */);Sourcepub fn set_or_clear_resource_uri<T>(self, v: Option<T>) -> Selfwhere
T: Into<StringValue>,
pub fn set_or_clear_resource_uri<T>(self, v: Option<T>) -> Selfwhere
T: Into<StringValue>,
Sets or clears the value of resource_uri.
§Example
use wkt::StringValue;
let x = UserDefinedFunctionResource::new().set_or_clear_resource_uri(Some(StringValue::default()/* use setters */));
let x = UserDefinedFunctionResource::new().set_or_clear_resource_uri(None::<StringValue>);Sourcepub fn set_inline_code<T>(self, v: T) -> Selfwhere
T: Into<StringValue>,
pub fn set_inline_code<T>(self, v: T) -> Selfwhere
T: Into<StringValue>,
Sets the value of inline_code.
§Example
use wkt::StringValue;
let x = UserDefinedFunctionResource::new().set_inline_code(StringValue::default()/* use setters */);Sourcepub fn set_or_clear_inline_code<T>(self, v: Option<T>) -> Selfwhere
T: Into<StringValue>,
pub fn set_or_clear_inline_code<T>(self, v: Option<T>) -> Selfwhere
T: Into<StringValue>,
Sets or clears the value of inline_code.
§Example
use wkt::StringValue;
let x = UserDefinedFunctionResource::new().set_or_clear_inline_code(Some(StringValue::default()/* use setters */));
let x = UserDefinedFunctionResource::new().set_or_clear_inline_code(None::<StringValue>);Trait Implementations§
Source§impl Clone for UserDefinedFunctionResource
impl Clone for UserDefinedFunctionResource
Source§fn clone(&self) -> UserDefinedFunctionResource
fn clone(&self) -> UserDefinedFunctionResource
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 UserDefinedFunctionResource
impl Debug for UserDefinedFunctionResource
Source§impl Default for UserDefinedFunctionResource
impl Default for UserDefinedFunctionResource
Source§fn default() -> UserDefinedFunctionResource
fn default() -> UserDefinedFunctionResource
impl StructuralPartialEq for UserDefinedFunctionResource
Auto Trait Implementations§
impl Freeze for UserDefinedFunctionResource
impl RefUnwindSafe for UserDefinedFunctionResource
impl Send for UserDefinedFunctionResource
impl Sync for UserDefinedFunctionResource
impl Unpin for UserDefinedFunctionResource
impl UnsafeUnpin for UserDefinedFunctionResource
impl UnwindSafe for UserDefinedFunctionResource
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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>
T in a tonic::Request