#[repr(i32)]pub enum RoutineBody {
Unspecified = 0,
Sql = 1,
External = 2,
}Expand description
Determines whether the function body is interpreted as SQL or as an external function.
Variants§
Unspecified = 0
Sql = 1
The function is defined in SQL.
External = 2
The function is defined externally.
Implementations§
Source§impl RoutineBody
impl RoutineBody
Source§impl RoutineBody
impl RoutineBody
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for RoutineBody
impl Clone for RoutineBody
Source§fn clone(&self) -> RoutineBody
fn clone(&self) -> RoutineBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RoutineBody
Source§impl Debug for RoutineBody
impl Debug for RoutineBody
Source§impl Default for RoutineBody
impl Default for RoutineBody
Source§fn default() -> RoutineBody
fn default() -> RoutineBody
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for RoutineBody
impl<'de> Deserialize<'de> for RoutineBody
§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
impl Eq for RoutineBody
Source§impl From<RoutineBody> for i32
impl From<RoutineBody> for i32
Source§fn from(value: RoutineBody) -> i32
fn from(value: RoutineBody) -> i32
Converts to this type from the input type.
Source§impl Hash for RoutineBody
impl Hash for RoutineBody
Source§impl Ord for RoutineBody
impl Ord for RoutineBody
Source§fn cmp(&self, other: &RoutineBody) -> Ordering
fn cmp(&self, other: &RoutineBody) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RoutineBody
impl PartialEq for RoutineBody
Source§impl PartialOrd for RoutineBody
impl PartialOrd for RoutineBody
§impl Serialize for RoutineBody
impl Serialize for RoutineBody
impl StructuralPartialEq for RoutineBody
Source§impl TryFrom<i32> for RoutineBody
impl TryFrom<i32> for RoutineBody
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<RoutineBody, UnknownEnumValue>
fn try_from(value: i32) -> Result<RoutineBody, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RoutineBody
impl RefUnwindSafe for RoutineBody
impl Send for RoutineBody
impl Sync for RoutineBody
impl Unpin for RoutineBody
impl UnsafeUnpin for RoutineBody
impl UnwindSafe for RoutineBody
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