pub trait AsyncChannelMetadataService {
// Required methods
fn get_channel_metadata(
&self,
auth_: BearerToken,
request: GetChannelMetadataRequest,
) -> impl Future<Output = Result<ChannelMetadata, Error>> + Send;
fn batch_get_channel_metadata(
&self,
auth_: BearerToken,
request: BatchGetChannelMetadataRequest,
) -> impl Future<Output = Result<BatchGetChannelMetadataResponse, Error>> + Send;
fn update_channel_metadata(
&self,
auth_: BearerToken,
request: UpdateChannelMetadataRequest,
) -> impl Future<Output = Result<ChannelMetadata, Error>> + Send;
fn batch_update_channel_metadata(
&self,
auth_: BearerToken,
request: BatchUpdateChannelMetadataRequest,
) -> impl Future<Output = Result<BatchUpdateChannelMetadataResponse, Error>> + Send;
}
Expand description
Endpoints for retrieving and updating channel metadata.
Required Methods§
Sourcefn get_channel_metadata(
&self,
auth_: BearerToken,
request: GetChannelMetadataRequest,
) -> impl Future<Output = Result<ChannelMetadata, Error>> + Send
fn get_channel_metadata( &self, auth_: BearerToken, request: GetChannelMetadataRequest, ) -> impl Future<Output = Result<ChannelMetadata, Error>> + Send
Get the metadata for a channel.
Sourcefn batch_get_channel_metadata(
&self,
auth_: BearerToken,
request: BatchGetChannelMetadataRequest,
) -> impl Future<Output = Result<BatchGetChannelMetadataResponse, Error>> + Send
fn batch_get_channel_metadata( &self, auth_: BearerToken, request: BatchGetChannelMetadataRequest, ) -> impl Future<Output = Result<BatchGetChannelMetadataResponse, Error>> + Send
Batch get the metadata for multiple channels. If some channels cannot be found or authorized, they will be omitted from the response.
Sourcefn update_channel_metadata(
&self,
auth_: BearerToken,
request: UpdateChannelMetadataRequest,
) -> impl Future<Output = Result<ChannelMetadata, Error>> + Send
fn update_channel_metadata( &self, auth_: BearerToken, request: UpdateChannelMetadataRequest, ) -> impl Future<Output = Result<ChannelMetadata, Error>> + Send
Update the metadata for a channel.
Sourcefn batch_update_channel_metadata(
&self,
auth_: BearerToken,
request: BatchUpdateChannelMetadataRequest,
) -> impl Future<Output = Result<BatchUpdateChannelMetadataResponse, Error>> + Send
fn batch_update_channel_metadata( &self, auth_: BearerToken, request: BatchUpdateChannelMetadataRequest, ) -> impl Future<Output = Result<BatchUpdateChannelMetadataResponse, Error>> + Send
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.