Struct mz_adapter::catalog::CommentsMap
source · pub struct CommentsMap { /* private fields */ }Implementations§
source§impl CommentsMap
impl CommentsMap
pub fn update_comment( &mut self, object_id: CommentObjectId, sub_component: Option<usize>, comment: Option<String> ) -> Option<String>
sourcepub fn drop_comments(
&mut self,
object_id: CommentObjectId
) -> Vec<(CommentObjectId, Option<usize>, String)>
pub fn drop_comments( &mut self, object_id: CommentObjectId ) -> Vec<(CommentObjectId, Option<usize>, String)>
Remove all comments for object_id from the map.
Generally there is one comment for a given CommentObjectId, but in the case of
relations you can also have comments on the individual columns. Dropping the comments for a
relation will also drop all of the comments on any columns.
pub fn iter( &self ) -> impl Iterator<Item = (CommentObjectId, Option<usize>, &str)>
pub fn get_object_comments( &self, object_id: CommentObjectId ) -> Option<&BTreeMap<Option<usize>, String>>
Trait Implementations§
source§impl Clone for CommentsMap
impl Clone for CommentsMap
source§fn clone(&self) -> CommentsMap
fn clone(&self) -> CommentsMap
Returns a copy 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 CommentsMap
impl Debug for CommentsMap
source§impl Default for CommentsMap
impl Default for CommentsMap
source§fn default() -> CommentsMap
fn default() -> CommentsMap
Returns the “default value” for a type. Read more
source§impl Serialize for CommentsMap
impl Serialize for CommentsMap
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CommentsMap
impl Send for CommentsMap
impl Sync for CommentsMap
impl Unpin for CommentsMap
impl UnwindSafe for CommentsMap
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Requestsource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> PreferredContainer for Twhere
T: Clone,
impl<T> PreferredContainer for Twhere T: Clone,
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto.