pub struct SqlIdentifier(/* private fields */);Expand description
A validated SQL identifier segment.
Implementations§
Source§impl SqlIdentifier
impl SqlIdentifier
Sourcepub fn new(input: impl AsRef<str>) -> Result<Self, SqlIdentifierError>
pub fn new(input: impl AsRef<str>) -> Result<Self, SqlIdentifierError>
Creates an identifier segment from conservative SQL identifier text.
§Errors
Returns SqlIdentifierError when the value is empty, contains a dot,
or contains control characters.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the identifier and returns the stored text.
Trait Implementations§
Source§impl AsRef<str> for SqlIdentifier
impl AsRef<str> for SqlIdentifier
Source§impl Clone for SqlIdentifier
impl Clone for SqlIdentifier
Source§fn clone(&self) -> SqlIdentifier
fn clone(&self) -> SqlIdentifier
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 moreSource§impl Debug for SqlIdentifier
impl Debug for SqlIdentifier
Source§impl Display for SqlIdentifier
impl Display for SqlIdentifier
Source§impl FromStr for SqlIdentifier
impl FromStr for SqlIdentifier
Source§impl Hash for SqlIdentifier
impl Hash for SqlIdentifier
Source§impl Ord for SqlIdentifier
impl Ord for SqlIdentifier
Source§fn cmp(&self, other: &SqlIdentifier) -> Ordering
fn cmp(&self, other: &SqlIdentifier) -> 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 SqlIdentifier
impl PartialEq for SqlIdentifier
Source§fn eq(&self, other: &SqlIdentifier) -> bool
fn eq(&self, other: &SqlIdentifier) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SqlIdentifier
impl PartialOrd for SqlIdentifier
Source§impl TryFrom<&str> for SqlIdentifier
impl TryFrom<&str> for SqlIdentifier
impl Eq for SqlIdentifier
impl StructuralPartialEq for SqlIdentifier
Auto Trait Implementations§
impl Freeze for SqlIdentifier
impl RefUnwindSafe for SqlIdentifier
impl Send for SqlIdentifier
impl Sync for SqlIdentifier
impl Unpin for SqlIdentifier
impl UnsafeUnpin for SqlIdentifier
impl UnwindSafe for SqlIdentifier
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