pub struct Subscription(/* private fields */);Expand description
A PostgreSQL subscription name (for logical replication).
Implementations§
Source§impl Subscription
impl Subscription
Sourcepub const fn from_static_or_panic(input: &'static str) -> Self
pub const fn from_static_or_panic(input: &'static str) -> Self
Creates a new value from a static string.
§Panics
Panics if the input is empty, exceeds MAX_LENGTH, or contains NUL bytes.
Trait Implementations§
Source§impl AsRef<str> for Subscription
impl AsRef<str> for Subscription
Source§impl Clone for Subscription
impl Clone for Subscription
Source§fn clone(&self) -> Subscription
fn clone(&self) -> Subscription
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 Subscription
impl Debug for Subscription
Source§impl<'de> Deserialize<'de> for Subscription
impl<'de> Deserialize<'de> for Subscription
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 Subscription
impl Display for Subscription
Source§impl FromStr for Subscription
impl FromStr for Subscription
Source§impl Ord for Subscription
impl Ord for Subscription
Source§fn cmp(&self, other: &Subscription) -> Ordering
fn cmp(&self, other: &Subscription) -> 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 Subscription
impl PartialEq for Subscription
Source§impl PartialOrd for Subscription
impl PartialOrd for Subscription
Source§impl Serialize for Subscription
impl Serialize for Subscription
Source§impl TryFrom<String> for Subscription
impl TryFrom<String> for Subscription
impl Eq for Subscription
impl StructuralPartialEq for Subscription
Auto Trait Implementations§
impl Freeze for Subscription
impl RefUnwindSafe for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl UnsafeUnpin for Subscription
impl UnwindSafe for Subscription
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