FeedClient

Struct FeedClient 

Source
pub struct FeedClient<T> { /* private fields */ }
Expand description

Implementations§

Source§

impl<T> FeedClient<T>
where T: GrpcService<BoxBody>, T::Error: Into<StdError>, T::ResponseBody: Body<Data = Bytes> + Send + 'static, <T::ResponseBody as Body>::Error: Into<StdError> + Send,

Source

pub fn new(inner: T) -> Self

Source

pub fn with_origin(inner: T, origin: Uri) -> Self

Source

pub fn with_interceptor<F>( inner: T, interceptor: F, ) -> FeedClient<InterceptedService<T, F>>
where F: Interceptor, T::ResponseBody: Default, T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>, <T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,

Source

pub fn send_compressed(self, encoding: CompressionEncoding) -> Self

Compress requests with the given encoding.

This requires the server to support it otherwise it might respond with an error.

Source

pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self

Enable decompressing responses.

Source

pub fn max_decoding_message_size(self, limit: usize) -> Self

Limits the maximum size of a decoded message.

Default: 4MB

Source

pub fn max_encoding_message_size(self, limit: usize) -> Self

Limits the maximum size of an encoded message.

Default: usize::MAX

Source

pub async fn add_dynamic_report( &mut self, request: impl IntoRequest<AddDynamicReportReq>, ) -> Result<Response<AddDynamicReportRsp>, Status>

Source

pub async fn article_home_page_categories( &mut self, request: impl IntoRequest<ArticleHomePageCategoriesReq>, ) -> Result<Response<ArticleHomePageCategoriesRsp>, Status>

Source

pub async fn at_list( &mut self, request: impl IntoRequest<AtListReq>, ) -> Result<Response<AtListRsp>, Status>

Source

pub async fn attach_card_button( &mut self, request: impl IntoRequest<AttachCardButtonReq>, ) -> Result<Response<AttachCardButtonRsp>, Status>

Source

pub async fn config( &mut self, request: impl IntoRequest<ConfigReq>, ) -> Result<Response<ConfigRsp>, Status>

Source

pub async fn create_dyn( &mut self, request: impl IntoRequest<CreateDynReq>, ) -> Result<Response<CreateResp>, Status>

Source

pub async fn create_init_check( &mut self, request: impl IntoRequest<CreateInitCheckReq>, ) -> Result<Response<CreateCheckResp>, Status>

Source

pub async fn create_opus( &mut self, request: impl IntoRequest<CreateOpusReq>, ) -> Result<Response<CreateResp>, Status>

Source

pub async fn create_page_infos( &mut self, request: impl IntoRequest<CreatePageInfosReq>, ) -> Result<Response<CreatePageInfosRsp>, Status>

Source

pub async fn create_permission_button_click( &mut self, request: impl IntoRequest<CreatePermissionButtonClickReq>, ) -> Result<Response<CreatePermissionButtonClickRsp>, Status>

Source

pub async fn create_plus_button_click( &mut self, request: impl IntoRequest<CreatePlusButtonClickReq>, ) -> Result<Response<CreatePlusButtonClickRsp>, Status>

Source

pub async fn dyn_metrics_active_report( &mut self, request: impl IntoRequest<DynMetricsActiveReportReq>, ) -> Result<Response<DynMetricsActiveReportRsp>, Status>

Source

pub async fn dyn_private_pub_setting( &mut self, request: impl IntoRequest<DynPrivatePubSettingReq>, ) -> Result<Response<DynPrivatePubSettingRsp>, Status>

Source

pub async fn dynamic_button_click( &mut self, request: impl IntoRequest<DynamicButtonClickReq>, ) -> Result<Response<DynamicButtonClickRsp>, Status>

Source

pub async fn dynamic_repost( &mut self, request: impl IntoRequest<DynamicRepostReq>, ) -> Result<Response<CreateResp>, Status>

Source

pub async fn dynamic_thumb( &mut self, request: impl IntoRequest<DynamicThumbReq>, ) -> Result<Response<DynamicThumbRsp>, Status>

Source

pub async fn edit_dyn( &mut self, request: impl IntoRequest<EditDynReq>, ) -> Result<Response<EditDynRsp>, Status>

Source

pub async fn get_edit_dyn_info( &mut self, request: impl IntoRequest<GetEditDynInfoReq>, ) -> Result<Response<GetEditDynInfoRsp>, Status>

Source

pub async fn get_edit_dyn_info_web( &mut self, request: impl IntoRequest<GetEditDynInfoWebReq>, ) -> Result<Response<GetEditDynInfoWebRsp>, Status>

Source

pub async fn get_uid_by_name( &mut self, request: impl IntoRequest<GetUidByNameReq>, ) -> Result<Response<GetUidByNameRsp>, Status>

Source

pub async fn goods_attach_card_preview( &mut self, request: impl IntoRequest<GoodsAttachCardPreviewReq>, ) -> Result<Response<GoodsAttachCardPreviewRsp>, Status>

Source

pub async fn home_bubble_report( &mut self, request: impl IntoRequest<HomeBubbleReportReq>, ) -> Result<Response<HomeBubbleReportRsp>, Status>

Source

pub async fn i_create_goods_reply_sync( &mut self, request: impl IntoRequest<ICreateGoodsReplySyncReq>, ) -> Result<Response<ICreateResp>, Status>

Source

pub async fn nearby_poi_list( &mut self, request: impl IntoRequest<NearbyPoiListReq>, ) -> Result<Response<NearbyPoiListRsp>, Status>

Source

pub async fn recommend_poi( &mut self, request: impl IntoRequest<RecommendPoiReq>, ) -> Result<Response<RecommendPoiRsp>, Status>

Source

pub async fn reserve_button_click( &mut self, request: impl IntoRequest<ReserveButtonClickReq>, ) -> Result<Response<ReserveButtonClickResp>, Status>

Source

pub async fn rm_dyn( &mut self, request: impl IntoRequest<RmDynReq>, ) -> Result<Response<RmDynRsp>, Status>

Source

pub async fn rm_space_top( &mut self, request: impl IntoRequest<RmSpaceTopReq>, ) -> Result<Response<RmSpaceTopRsp>, Status>

Source

pub async fn search_poi_list( &mut self, request: impl IntoRequest<SearchPoiListReq>, ) -> Result<Response<SearchPoiListRsp>, Status>

Source

pub async fn set_space_top( &mut self, request: impl IntoRequest<SetSpaceTopReq>, ) -> Result<Response<SetSpaceTopRsp>, Status>

Source

pub async fn submit_check( &mut self, request: impl IntoRequest<SubmitCheckReq>, ) -> Result<Response<SubmitCheckRsp>, Status>

Source

pub async fn suggest( &mut self, request: impl IntoRequest<SuggestReq>, ) -> Result<Response<SuggestRsp>, Status>

Trait Implementations§

Source§

impl<T: Clone> Clone for FeedClient<T>

Source§

fn clone(&self) -> FeedClient<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug> Debug for FeedClient<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> !Freeze for FeedClient<T>

§

impl<T> RefUnwindSafe for FeedClient<T>
where T: RefUnwindSafe,

§

impl<T> Send for FeedClient<T>
where T: Send,

§

impl<T> Sync for FeedClient<T>
where T: Sync,

§

impl<T> Unpin for FeedClient<T>
where T: Unpin,

§

impl<T> UnwindSafe for FeedClient<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more