[−][src]Struct dbcrossbarlib::drivers::postgres::citus::ShardInfo
Information about a single shard of a table.
We derive QueryableByName
and declare sql_type
on each field because
this doesn't correspond to an underlying table. It's just the result of a
raw SQL query using sql_query
.
Methods
impl ShardInfo
[src]
pub fn name(&self) -> Result<&str>
[src]
Find a human-readable name for this shard.
pub fn url(&self, controller_url: &Url) -> Result<Url>
[src]
Build a URL which provides direct access to this shard, using the database URL of the controller node.
Trait Implementations
impl Debug for ShardInfo
[src]
impl<__DB: Backend> QueryableByName<__DB> for ShardInfo where
i64: FromSql<Bigint, __DB>,
Option<String>: FromSql<Nullable<Text>, __DB>,
Option<String>: FromSql<Nullable<Text>, __DB>,
Option<i32>: FromSql<Nullable<Integer>, __DB>,
[src]
i64: FromSql<Bigint, __DB>,
Option<String>: FromSql<Nullable<Text>, __DB>,
Option<String>: FromSql<Nullable<Text>, __DB>,
Option<i32>: FromSql<Nullable<Integer>, __DB>,
Auto Trait Implementations
impl RefUnwindSafe for ShardInfo
impl Send for ShardInfo
impl Sync for ShardInfo
impl Unpin for ShardInfo
impl UnwindSafe for ShardInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
[src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,