#[non_exhaustive]pub struct UserDefinedFunction {
pub function_name: Option<String>,
pub database_name: Option<String>,
pub class_name: Option<String>,
pub owner_name: Option<String>,
pub function_type: Option<FunctionType>,
pub owner_type: Option<PrincipalType>,
pub create_time: Option<DateTime>,
pub resource_uris: Option<Vec<ResourceUri>>,
pub artifact_location: Option<String>,
pub governance_mode: Option<GovernanceMode>,
pub catalog_id: Option<String>,
}Expand description
Represents the equivalent of a Hive user-defined function (UDF) definition.
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.function_name: Option<String>The name of the function.
database_name: Option<String>The name of the catalog database that contains the function.
class_name: Option<String>The Java class that contains the function code.
owner_name: Option<String>The owner of the function.
function_type: Option<FunctionType>The type of the function.
owner_type: Option<PrincipalType>The owner type.
create_time: Option<DateTime>The time at which the function was created.
resource_uris: Option<Vec<ResourceUri>>The resource URIs for the function.
artifact_location: Option<String>The Amazon S3 location that contains the function's artifacts. This location must be registered with Lake Formation. Glue returns this field only for functions whose GovernanceMode is LAKE_FORMATION.
governance_mode: Option<GovernanceMode>How access to the function is governed. IAM_ONLY means access is controlled by IAM permissions only. LAKE_FORMATION means Lake Formation permissions (EXECUTE, DESCRIBE, ALTER, and DROP) also control who can run, describe, update, and delete the function.
catalog_id: Option<String>The ID of the Data Catalog in which the function resides.
Implementations§
Source§impl UserDefinedFunction
impl UserDefinedFunction
Sourcepub fn function_name(&self) -> Option<&str>
pub fn function_name(&self) -> Option<&str>
The name of the function.
Sourcepub fn database_name(&self) -> Option<&str>
pub fn database_name(&self) -> Option<&str>
The name of the catalog database that contains the function.
Sourcepub fn class_name(&self) -> Option<&str>
pub fn class_name(&self) -> Option<&str>
The Java class that contains the function code.
Sourcepub fn owner_name(&self) -> Option<&str>
pub fn owner_name(&self) -> Option<&str>
The owner of the function.
Sourcepub fn function_type(&self) -> Option<&FunctionType>
pub fn function_type(&self) -> Option<&FunctionType>
The type of the function.
Sourcepub fn owner_type(&self) -> Option<&PrincipalType>
pub fn owner_type(&self) -> Option<&PrincipalType>
The owner type.
Sourcepub fn create_time(&self) -> Option<&DateTime>
pub fn create_time(&self) -> Option<&DateTime>
The time at which the function was created.
Sourcepub fn resource_uris(&self) -> &[ResourceUri]
pub fn resource_uris(&self) -> &[ResourceUri]
The resource URIs for the function.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .resource_uris.is_none().
Sourcepub fn artifact_location(&self) -> Option<&str>
pub fn artifact_location(&self) -> Option<&str>
The Amazon S3 location that contains the function's artifacts. This location must be registered with Lake Formation. Glue returns this field only for functions whose GovernanceMode is LAKE_FORMATION.
Sourcepub fn governance_mode(&self) -> Option<&GovernanceMode>
pub fn governance_mode(&self) -> Option<&GovernanceMode>
How access to the function is governed. IAM_ONLY means access is controlled by IAM permissions only. LAKE_FORMATION means Lake Formation permissions (EXECUTE, DESCRIBE, ALTER, and DROP) also control who can run, describe, update, and delete the function.
Sourcepub fn catalog_id(&self) -> Option<&str>
pub fn catalog_id(&self) -> Option<&str>
The ID of the Data Catalog in which the function resides.
Source§impl UserDefinedFunction
impl UserDefinedFunction
Sourcepub fn builder() -> UserDefinedFunctionBuilder
pub fn builder() -> UserDefinedFunctionBuilder
Creates a new builder-style object to manufacture UserDefinedFunction.
Source§impl UserDefinedFunction
impl UserDefinedFunction
Sourcepub fn deserialize(
deserializer: &mut dyn ShapeDeserializer,
) -> Result<Self, SerdeError>
pub fn deserialize( deserializer: &mut dyn ShapeDeserializer, ) -> Result<Self, SerdeError>
Deserializes this structure from a [ShapeDeserializer].
Trait Implementations§
Source§impl Clone for UserDefinedFunction
impl Clone for UserDefinedFunction
Source§fn clone(&self) -> UserDefinedFunction
fn clone(&self) -> UserDefinedFunction
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 UserDefinedFunction
impl Debug for UserDefinedFunction
Source§impl PartialEq for UserDefinedFunction
impl PartialEq for UserDefinedFunction
Source§impl SerializableStruct for UserDefinedFunction
impl SerializableStruct for UserDefinedFunction
Source§fn schema(&self) -> &Schema<'_>
fn schema(&self) -> &Schema<'_>
Source§fn serialize_members(
&self,
ser: &mut dyn ShapeSerializer,
) -> Result<(), SerdeError>
fn serialize_members( &self, ser: &mut dyn ShapeSerializer, ) -> Result<(), SerdeError>
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more