[][src]Struct dbcrossbarlib::drivers::postgres::citus::ShardInfo

pub struct ShardInfo { /* fields omitted */ }

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]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoSql for T[src]

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]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,