pub enum CommentObjectType<T: AstInfo> {
Show 18 variants
Table {
name: T::ItemName,
},
View {
name: T::ItemName,
},
Column {
name: ColumnName<T>,
},
MaterializedView {
name: T::ItemName,
},
Source {
name: T::ItemName,
},
Sink {
name: T::ItemName,
},
Index {
name: T::ItemName,
},
Func {
name: T::ItemName,
},
Connection {
name: T::ItemName,
},
Type {
ty: T::DataType,
},
Secret {
name: T::ItemName,
},
Role {
name: T::RoleName,
},
Database {
name: T::DatabaseName,
},
Schema {
name: T::SchemaName,
},
Cluster {
name: T::ClusterName,
},
ClusterReplica {
name: QualifiedReplica,
},
ContinualTask {
name: T::ItemName,
},
NetworkPolicy {
name: T::NetworkPolicyName,
},
}
Variants§
Table
View
Column
Fields
name: ColumnName<T>
MaterializedView
Source
Sink
Index
Func
Connection
Type
Secret
Role
Database
Fields
name: T::DatabaseName
Schema
Fields
name: T::SchemaName
Cluster
Fields
name: T::ClusterName
ClusterReplica
Fields
name: QualifiedReplica
ContinualTask
NetworkPolicy
Fields
name: T::NetworkPolicyName
Trait Implementations§
Source§impl<T: AstInfo> AstDisplay for CommentObjectType<T>
impl<T: AstInfo> AstDisplay for CommentObjectType<T>
fn fmt<W: Write>(&self, f: &mut AstFormatter<W>)
fn to_ast_string_simple(&self) -> String
fn to_ast_string_stable(&self) -> String
fn to_ast_string_redacted(&self) -> String
fn to_ast_string(&self, format_mode: FormatMode) -> String
Source§impl<T: Clone + AstInfo> Clone for CommentObjectType<T>where
T::ItemName: Clone,
T::DataType: Clone,
T::RoleName: Clone,
T::DatabaseName: Clone,
T::SchemaName: Clone,
T::ClusterName: Clone,
T::NetworkPolicyName: Clone,
impl<T: Clone + AstInfo> Clone for CommentObjectType<T>where
T::ItemName: Clone,
T::DataType: Clone,
T::RoleName: Clone,
T::DatabaseName: Clone,
T::SchemaName: Clone,
T::ClusterName: Clone,
T::NetworkPolicyName: Clone,
Source§fn clone(&self) -> CommentObjectType<T>
fn clone(&self) -> CommentObjectType<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<T: Debug + AstInfo> Debug for CommentObjectType<T>where
T::ItemName: Debug,
T::DataType: Debug,
T::RoleName: Debug,
T::DatabaseName: Debug,
T::SchemaName: Debug,
T::ClusterName: Debug,
T::NetworkPolicyName: Debug,
impl<T: Debug + AstInfo> Debug for CommentObjectType<T>where
T::ItemName: Debug,
T::DataType: Debug,
T::RoleName: Debug,
T::DatabaseName: Debug,
T::SchemaName: Debug,
T::ClusterName: Debug,
T::NetworkPolicyName: Debug,
Source§impl<T: AstInfo> Display for CommentObjectType<T>
impl<T: AstInfo> Display for CommentObjectType<T>
Source§impl<T: Hash + AstInfo> Hash for CommentObjectType<T>where
T::ItemName: Hash,
T::DataType: Hash,
T::RoleName: Hash,
T::DatabaseName: Hash,
T::SchemaName: Hash,
T::ClusterName: Hash,
T::NetworkPolicyName: Hash,
impl<T: Hash + AstInfo> Hash for CommentObjectType<T>where
T::ItemName: Hash,
T::DataType: Hash,
T::RoleName: Hash,
T::DatabaseName: Hash,
T::SchemaName: Hash,
T::ClusterName: Hash,
T::NetworkPolicyName: Hash,
Source§impl<T: PartialEq + AstInfo> PartialEq for CommentObjectType<T>where
T::ItemName: PartialEq,
T::DataType: PartialEq,
T::RoleName: PartialEq,
T::DatabaseName: PartialEq,
T::SchemaName: PartialEq,
T::ClusterName: PartialEq,
T::NetworkPolicyName: PartialEq,
impl<T: PartialEq + AstInfo> PartialEq for CommentObjectType<T>where
T::ItemName: PartialEq,
T::DataType: PartialEq,
T::RoleName: PartialEq,
T::DatabaseName: PartialEq,
T::SchemaName: PartialEq,
T::ClusterName: PartialEq,
T::NetworkPolicyName: PartialEq,
Source§impl<'ast, T: AstInfo> VisitMutNode<'ast, T> for CommentObjectType<T>
impl<'ast, T: AstInfo> VisitMutNode<'ast, T> for CommentObjectType<T>
Source§impl<'ast, T: AstInfo> VisitNode<'ast, T> for CommentObjectType<T>
impl<'ast, T: AstInfo> VisitNode<'ast, T> for CommentObjectType<T>
impl<T: Eq + AstInfo> Eq for CommentObjectType<T>where
T::ItemName: Eq,
T::DataType: Eq,
T::RoleName: Eq,
T::DatabaseName: Eq,
T::SchemaName: Eq,
T::ClusterName: Eq,
T::NetworkPolicyName: Eq,
impl<T: AstInfo> StructuralPartialEq for CommentObjectType<T>
Auto Trait Implementations§
impl<T> Freeze for CommentObjectType<T>where
<T as AstInfo>::ItemName: Freeze,
<T as AstInfo>::DataType: Freeze,
<T as AstInfo>::RoleName: Freeze,
<T as AstInfo>::DatabaseName: Freeze,
<T as AstInfo>::SchemaName: Freeze,
<T as AstInfo>::ClusterName: Freeze,
<T as AstInfo>::NetworkPolicyName: Freeze,
<T as AstInfo>::ColumnReference: Freeze,
impl<T> RefUnwindSafe for CommentObjectType<T>where
<T as AstInfo>::ItemName: RefUnwindSafe,
<T as AstInfo>::DataType: RefUnwindSafe,
<T as AstInfo>::RoleName: RefUnwindSafe,
<T as AstInfo>::DatabaseName: RefUnwindSafe,
<T as AstInfo>::SchemaName: RefUnwindSafe,
<T as AstInfo>::ClusterName: RefUnwindSafe,
<T as AstInfo>::NetworkPolicyName: RefUnwindSafe,
<T as AstInfo>::ColumnReference: RefUnwindSafe,
impl<T> Send for CommentObjectType<T>where
<T as AstInfo>::ItemName: Send,
<T as AstInfo>::DataType: Send,
<T as AstInfo>::RoleName: Send,
<T as AstInfo>::DatabaseName: Send,
<T as AstInfo>::SchemaName: Send,
<T as AstInfo>::ClusterName: Send,
<T as AstInfo>::NetworkPolicyName: Send,
<T as AstInfo>::ColumnReference: Send,
impl<T> Sync for CommentObjectType<T>where
<T as AstInfo>::ItemName: Sync,
<T as AstInfo>::DataType: Sync,
<T as AstInfo>::RoleName: Sync,
<T as AstInfo>::DatabaseName: Sync,
<T as AstInfo>::SchemaName: Sync,
<T as AstInfo>::ClusterName: Sync,
<T as AstInfo>::NetworkPolicyName: Sync,
<T as AstInfo>::ColumnReference: Sync,
impl<T> Unpin for CommentObjectType<T>where
<T as AstInfo>::ItemName: Unpin,
<T as AstInfo>::DataType: Unpin,
<T as AstInfo>::RoleName: Unpin,
<T as AstInfo>::DatabaseName: Unpin,
<T as AstInfo>::SchemaName: Unpin,
<T as AstInfo>::ClusterName: Unpin,
<T as AstInfo>::NetworkPolicyName: Unpin,
<T as AstInfo>::ColumnReference: Unpin,
impl<T> UnwindSafe for CommentObjectType<T>where
<T as AstInfo>::ItemName: UnwindSafe,
<T as AstInfo>::DataType: UnwindSafe,
<T as AstInfo>::RoleName: UnwindSafe,
<T as AstInfo>::DatabaseName: UnwindSafe,
<T as AstInfo>::SchemaName: UnwindSafe,
<T as AstInfo>::ClusterName: UnwindSafe,
<T as AstInfo>::NetworkPolicyName: UnwindSafe,
<T as AstInfo>::ColumnReference: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
Source§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
Source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
std::ops::AddAssign
, for types that do not implement AddAssign
.Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Source§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
Source§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.