pub struct GrantBuilder { /* private fields */ }Expand description
Builder for grants.
Implementations§
Source§impl GrantBuilder
impl GrantBuilder
Sourcepub fn on(self, object: GrantObject) -> Self
pub fn on(self, object: GrantObject) -> Self
Set the object.
Sourcepub fn on_columns<I, S>(self, table: impl Into<String>, columns: I) -> Self
pub fn on_columns<I, S>(self, table: impl Into<String>, columns: I) -> Self
Grant on specific columns.
Sourcepub fn with_grant_option(self) -> Self
pub fn with_grant_option(self) -> Self
Include WITH GRANT OPTION.
Sourcepub fn build(self) -> QueryResult<Grant>
pub fn build(self) -> QueryResult<Grant>
Build the grant.
Trait Implementations§
Source§impl Clone for GrantBuilder
impl Clone for GrantBuilder
Source§fn clone(&self) -> GrantBuilder
fn clone(&self) -> GrantBuilder
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 moreAuto Trait Implementations§
impl Freeze for GrantBuilder
impl RefUnwindSafe for GrantBuilder
impl Send for GrantBuilder
impl Sync for GrantBuilder
impl Unpin for GrantBuilder
impl UnwindSafe for GrantBuilder
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