pub struct ChannelMetadataServiceClient<T>(/* private fields */);
Expand description
Endpoints for retrieving and updating channel metadata.
Implementations§
Source§impl<T> ChannelMetadataServiceClient<T>where
T: Client,
impl<T> ChannelMetadataServiceClient<T>where
T: Client,
Sourcepub fn get_channel_metadata(
&self,
auth_: &BearerToken,
request: &GetChannelMetadataRequest,
) -> Result<ChannelMetadata, Error>
pub fn get_channel_metadata( &self, auth_: &BearerToken, request: &GetChannelMetadataRequest, ) -> Result<ChannelMetadata, Error>
Get the metadata for a channel.
Sourcepub fn batch_get_channel_metadata(
&self,
auth_: &BearerToken,
request: &BatchGetChannelMetadataRequest,
) -> Result<BatchGetChannelMetadataResponse, Error>
pub fn batch_get_channel_metadata( &self, auth_: &BearerToken, request: &BatchGetChannelMetadataRequest, ) -> Result<BatchGetChannelMetadataResponse, Error>
Batch get the metadata for multiple channels. If some channels cannot be found or authorized, they will be omitted from the response.
Sourcepub fn update_channel_metadata(
&self,
auth_: &BearerToken,
request: &UpdateChannelMetadataRequest,
) -> Result<ChannelMetadata, Error>
pub fn update_channel_metadata( &self, auth_: &BearerToken, request: &UpdateChannelMetadataRequest, ) -> Result<ChannelMetadata, Error>
Update the metadata for a channel.
Sourcepub fn batch_update_channel_metadata(
&self,
auth_: &BearerToken,
request: &BatchUpdateChannelMetadataRequest,
) -> Result<BatchUpdateChannelMetadataResponse, Error>
pub fn batch_update_channel_metadata( &self, auth_: &BearerToken, request: &BatchUpdateChannelMetadataRequest, ) -> Result<BatchUpdateChannelMetadataResponse, Error>
Batch update the metadata for multiple channels. If some channels cannot be found or authorized, no metadata will be updated for any of the channels in the request.
Trait Implementations§
Source§impl<T: Clone> Clone for ChannelMetadataServiceClient<T>
impl<T: Clone> Clone for ChannelMetadataServiceClient<T>
Source§fn clone(&self) -> ChannelMetadataServiceClient<T>
fn clone(&self) -> ChannelMetadataServiceClient<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for ChannelMetadataServiceClient<T>
impl<T: Debug> Debug for ChannelMetadataServiceClient<T>
Auto Trait Implementations§
impl<T> Freeze for ChannelMetadataServiceClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for ChannelMetadataServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for ChannelMetadataServiceClient<T>where
T: Send,
impl<T> Sync for ChannelMetadataServiceClient<T>where
T: Sync,
impl<T> Unpin for ChannelMetadataServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for ChannelMetadataServiceClient<T>where
T: 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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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::Request