#[non_exhaustive]pub struct PackageEntity {
pub package_sql_code: String,
pub package_body: String,
pub custom_features: Option<Struct>,
/* private fields */
}Expand description
Package’s parent is a schema.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.package_sql_code: StringThe SQL code which creates the package.
package_body: StringThe SQL code which creates the package body. If the package specification has cursors or subprograms, then the package body is mandatory.
custom_features: Option<Struct>Custom engine specific features.
Implementations§
Source§impl PackageEntity
impl PackageEntity
pub fn new() -> Self
Sourcepub fn set_package_sql_code<T: Into<String>>(self, v: T) -> Self
pub fn set_package_sql_code<T: Into<String>>(self, v: T) -> Self
Sets the value of package_sql_code.
Sourcepub fn set_package_body<T: Into<String>>(self, v: T) -> Self
pub fn set_package_body<T: Into<String>>(self, v: T) -> Self
Sets the value of package_body.
Sourcepub fn set_custom_features<T>(self, v: T) -> Self
pub fn set_custom_features<T>(self, v: T) -> Self
Sets the value of custom_features.
Sourcepub fn set_or_clear_custom_features<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_custom_features<T>(self, v: Option<T>) -> Self
Sets or clears the value of custom_features.
Trait Implementations§
Source§impl Clone for PackageEntity
impl Clone for PackageEntity
Source§fn clone(&self) -> PackageEntity
fn clone(&self) -> PackageEntity
Returns a duplicate 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 PackageEntity
impl Debug for PackageEntity
Source§impl Default for PackageEntity
impl Default for PackageEntity
Source§fn default() -> PackageEntity
fn default() -> PackageEntity
Returns the “default value” for a type. Read more
Source§impl Message for PackageEntity
impl Message for PackageEntity
Source§impl PartialEq for PackageEntity
impl PartialEq for PackageEntity
impl StructuralPartialEq for PackageEntity
Auto Trait Implementations§
impl Freeze for PackageEntity
impl RefUnwindSafe for PackageEntity
impl Send for PackageEntity
impl Sync for PackageEntity
impl Unpin for PackageEntity
impl UnwindSafe for PackageEntity
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