pub struct CreateUserMapping {
pub if_not_exists: bool,
pub user: UserMappingUser,
pub server_name: Ident,
pub options: Option<Vec<CreateServerOption>>,
}Expand description
A CREATE USER MAPPING statement.
Note: this is a PostgreSQL-specific statement. https://www.postgresql.org/docs/current/sql-createusermapping.html
Fields§
§if_not_exists: boolIF NOT EXISTS
user: UserMappingUserThe user/role for the mapping.
server_name: IdentThe foreign server name.
options: Option<Vec<CreateServerOption>>Optional OPTIONS (key 'value', ...) clause.
Trait Implementations§
Source§impl Clone for CreateUserMapping
impl Clone for CreateUserMapping
Source§fn clone(&self) -> CreateUserMapping
fn clone(&self) -> CreateUserMapping
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 CreateUserMapping
impl Debug for CreateUserMapping
Source§impl<'de> Deserialize<'de> for CreateUserMapping
impl<'de> Deserialize<'de> for CreateUserMapping
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 Display for CreateUserMapping
impl Display for CreateUserMapping
Source§impl From<CreateUserMapping> for Statement
impl From<CreateUserMapping> for Statement
Source§fn from(v: CreateUserMapping) -> Self
fn from(v: CreateUserMapping) -> Self
Converts to this type from the input type.
Source§impl Hash for CreateUserMapping
impl Hash for CreateUserMapping
Source§impl Ord for CreateUserMapping
impl Ord for CreateUserMapping
Source§fn cmp(&self, other: &CreateUserMapping) -> Ordering
fn cmp(&self, other: &CreateUserMapping) -> Ordering
1.21.0 · 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 CreateUserMapping
impl PartialEq for CreateUserMapping
Source§impl PartialOrd for CreateUserMapping
impl PartialOrd for CreateUserMapping
Source§impl Serialize for CreateUserMapping
impl Serialize for CreateUserMapping
Source§impl Visit for CreateUserMapping
impl Visit for CreateUserMapping
Source§impl VisitMut for CreateUserMapping
impl VisitMut for CreateUserMapping
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreimpl Eq for CreateUserMapping
impl StructuralPartialEq for CreateUserMapping
Auto Trait Implementations§
impl Freeze for CreateUserMapping
impl RefUnwindSafe for CreateUserMapping
impl Send for CreateUserMapping
impl Sync for CreateUserMapping
impl Unpin for CreateUserMapping
impl UnsafeUnpin for CreateUserMapping
impl UnwindSafe for CreateUserMapping
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