pub struct DynamicClient<T> { /* private fields */ }Expand description
Implementations§
Source§impl<T> DynamicClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> DynamicClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> DynamicClient<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,
Sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
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.
Sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
Sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
Sourcepub async fn alumni_dynamics(
&mut self,
request: impl IntoRequest<AlumniDynamicsReq>,
) -> Result<Response<AlumniDynamicsReply>, Status>
pub async fn alumni_dynamics( &mut self, request: impl IntoRequest<AlumniDynamicsReq>, ) -> Result<Response<AlumniDynamicsReply>, Status>
Sourcepub async fn campus_billboard(
&mut self,
request: impl IntoRequest<CampusBillBoardReq>,
) -> Result<Response<CampusBillBoardReply>, Status>
pub async fn campus_billboard( &mut self, request: impl IntoRequest<CampusBillBoardReq>, ) -> Result<Response<CampusBillBoardReply>, Status>
Sourcepub async fn campus_billboard_internal(
&mut self,
request: impl IntoRequest<CampusBillboardInternalReq>,
) -> Result<Response<CampusBillBoardReply>, Status>
pub async fn campus_billboard_internal( &mut self, request: impl IntoRequest<CampusBillboardInternalReq>, ) -> Result<Response<CampusBillBoardReply>, Status>
Sourcepub async fn campus_entry_tab(
&mut self,
request: impl IntoRequest<CampusEntryTabReq>,
) -> Result<Response<CampusEntryTabResp>, Status>
pub async fn campus_entry_tab( &mut self, request: impl IntoRequest<CampusEntryTabReq>, ) -> Result<Response<CampusEntryTabResp>, Status>
Sourcepub async fn campus_feedback(
&mut self,
request: impl IntoRequest<CampusFeedbackReq>,
) -> Result<Response<CampusFeedbackReply>, Status>
pub async fn campus_feedback( &mut self, request: impl IntoRequest<CampusFeedbackReq>, ) -> Result<Response<CampusFeedbackReply>, Status>
Sourcepub async fn campus_home_pages(
&mut self,
request: impl IntoRequest<CampusHomePagesReq>,
) -> Result<Response<CampusHomePagesReply>, Status>
pub async fn campus_home_pages( &mut self, request: impl IntoRequest<CampusHomePagesReq>, ) -> Result<Response<CampusHomePagesReply>, Status>
Sourcepub async fn campus_mate_like_list(
&mut self,
request: impl IntoRequest<CampusMateLikeListReq>,
) -> Result<Response<CampusMateLikeListReply>, Status>
pub async fn campus_mate_like_list( &mut self, request: impl IntoRequest<CampusMateLikeListReq>, ) -> Result<Response<CampusMateLikeListReply>, Status>
Sourcepub async fn campus_mng_detail(
&mut self,
request: impl IntoRequest<CampusMngDetailReq>,
) -> Result<Response<CampusMngDetailReply>, Status>
pub async fn campus_mng_detail( &mut self, request: impl IntoRequest<CampusMngDetailReq>, ) -> Result<Response<CampusMngDetailReply>, Status>
Sourcepub async fn campus_mng_quiz_operate(
&mut self,
request: impl IntoRequest<CampusMngQuizOperateReq>,
) -> Result<Response<CampusMngQuizOperateReply>, Status>
pub async fn campus_mng_quiz_operate( &mut self, request: impl IntoRequest<CampusMngQuizOperateReq>, ) -> Result<Response<CampusMngQuizOperateReply>, Status>
Sourcepub async fn campus_mng_submit(
&mut self,
request: impl IntoRequest<CampusMngSubmitReq>,
) -> Result<Response<CampusMngSubmitReply>, Status>
pub async fn campus_mng_submit( &mut self, request: impl IntoRequest<CampusMngSubmitReq>, ) -> Result<Response<CampusMngSubmitReply>, Status>
Sourcepub async fn campus_rcmd(
&mut self,
request: impl IntoRequest<CampusRcmdReq>,
) -> Result<Response<CampusRcmdReply>, Status>
pub async fn campus_rcmd( &mut self, request: impl IntoRequest<CampusRcmdReq>, ) -> Result<Response<CampusRcmdReply>, Status>
Sourcepub async fn campus_rcmd_feed(
&mut self,
request: impl IntoRequest<CampusRcmdFeedReq>,
) -> Result<Response<CampusRcmdFeedReply>, Status>
pub async fn campus_rcmd_feed( &mut self, request: impl IntoRequest<CampusRcmdFeedReq>, ) -> Result<Response<CampusRcmdFeedReply>, Status>
Sourcepub async fn campus_recommend(
&mut self,
request: impl IntoRequest<CampusRecommendReq>,
) -> Result<Response<CampusRecommendReply>, Status>
pub async fn campus_recommend( &mut self, request: impl IntoRequest<CampusRecommendReq>, ) -> Result<Response<CampusRecommendReply>, Status>
Sourcepub async fn campus_red_dot(
&mut self,
request: impl IntoRequest<CampusRedDotReq>,
) -> Result<Response<CampusRedDotReply>, Status>
pub async fn campus_red_dot( &mut self, request: impl IntoRequest<CampusRedDotReq>, ) -> Result<Response<CampusRedDotReply>, Status>
Sourcepub async fn campus_square(
&mut self,
request: impl IntoRequest<CampusSquareReq>,
) -> Result<Response<CampusSquareReply>, Status>
pub async fn campus_square( &mut self, request: impl IntoRequest<CampusSquareReq>, ) -> Result<Response<CampusSquareReply>, Status>
Sourcepub async fn campus_topic_rcmd_feed(
&mut self,
request: impl IntoRequest<CampusTopicRcmdFeedReq>,
) -> Result<Response<CampusTopicRcmdFeedReply>, Status>
pub async fn campus_topic_rcmd_feed( &mut self, request: impl IntoRequest<CampusTopicRcmdFeedReq>, ) -> Result<Response<CampusTopicRcmdFeedReply>, Status>
Sourcepub async fn cooperation_staff_list(
&mut self,
request: impl IntoRequest<CooperationStaffListReq>,
) -> Result<Response<CooperationStaffListResp>, Status>
pub async fn cooperation_staff_list( &mut self, request: impl IntoRequest<CooperationStaffListReq>, ) -> Result<Response<CooperationStaffListResp>, Status>
Sourcepub async fn dyn_addition_common_follow(
&mut self,
request: impl IntoRequest<DynAdditionCommonFollowReq>,
) -> Result<Response<DynAdditionCommonFollowReply>, Status>
pub async fn dyn_addition_common_follow( &mut self, request: impl IntoRequest<DynAdditionCommonFollowReq>, ) -> Result<Response<DynAdditionCommonFollowReply>, Status>
Sourcepub async fn dyn_all(
&mut self,
request: impl IntoRequest<DynAllReq>,
) -> Result<Response<DynAllReply>, Status>
pub async fn dyn_all( &mut self, request: impl IntoRequest<DynAllReq>, ) -> Result<Response<DynAllReply>, Status>
Sourcepub async fn dyn_all_personal(
&mut self,
request: impl IntoRequest<DynAllPersonalReq>,
) -> Result<Response<DynAllPersonalReply>, Status>
pub async fn dyn_all_personal( &mut self, request: impl IntoRequest<DynAllPersonalReq>, ) -> Result<Response<DynAllPersonalReply>, Status>
Sourcepub async fn dyn_all_upd_offset(
&mut self,
request: impl IntoRequest<DynAllUpdOffsetReq>,
) -> Result<Response<NoReply>, Status>
pub async fn dyn_all_upd_offset( &mut self, request: impl IntoRequest<DynAllUpdOffsetReq>, ) -> Result<Response<NoReply>, Status>
Sourcepub async fn dyn_detail(
&mut self,
request: impl IntoRequest<DynDetailReq>,
) -> Result<Response<DynDetailReply>, Status>
pub async fn dyn_detail( &mut self, request: impl IntoRequest<DynDetailReq>, ) -> Result<Response<DynDetailReply>, Status>
Sourcepub async fn dyn_details(
&mut self,
request: impl IntoRequest<DynDetailsReq>,
) -> Result<Response<DynDetailsReply>, Status>
pub async fn dyn_details( &mut self, request: impl IntoRequest<DynDetailsReq>, ) -> Result<Response<DynDetailsReply>, Status>
Sourcepub async fn dyn_fake_card(
&mut self,
request: impl IntoRequest<DynFakeCardReq>,
) -> Result<Response<DynFakeCardReply>, Status>
pub async fn dyn_fake_card( &mut self, request: impl IntoRequest<DynFakeCardReq>, ) -> Result<Response<DynFakeCardReply>, Status>
Sourcepub async fn dyn_friend(
&mut self,
request: impl IntoRequest<DynFriendReq>,
) -> Result<Response<DynFriendReply>, Status>
pub async fn dyn_friend( &mut self, request: impl IntoRequest<DynFriendReq>, ) -> Result<Response<DynFriendReply>, Status>
Sourcepub async fn dyn_light(
&mut self,
request: impl IntoRequest<DynLightReq>,
) -> Result<Response<DynLightReply>, Status>
pub async fn dyn_light( &mut self, request: impl IntoRequest<DynLightReq>, ) -> Result<Response<DynLightReply>, Status>
Sourcepub async fn dyn_mix_up_list_search(
&mut self,
request: impl IntoRequest<DynMixUpListSearchReq>,
) -> Result<Response<DynMixUpListSearchReply>, Status>
pub async fn dyn_mix_up_list_search( &mut self, request: impl IntoRequest<DynMixUpListSearchReq>, ) -> Result<Response<DynMixUpListSearchReply>, Status>
Sourcepub async fn dyn_mix_up_list_view_more(
&mut self,
request: impl IntoRequest<DynMixUpListViewMoreReq>,
) -> Result<Response<DynMixUpListViewMoreReply>, Status>
pub async fn dyn_mix_up_list_view_more( &mut self, request: impl IntoRequest<DynMixUpListViewMoreReq>, ) -> Result<Response<DynMixUpListViewMoreReply>, Status>
Sourcepub async fn dyn_rcmd_up_exchange(
&mut self,
request: impl IntoRequest<DynRcmdUpExchangeReq>,
) -> Result<Response<DynRcmdUpExchangeReply>, Status>
pub async fn dyn_rcmd_up_exchange( &mut self, request: impl IntoRequest<DynRcmdUpExchangeReq>, ) -> Result<Response<DynRcmdUpExchangeReply>, Status>
Sourcepub async fn dyn_search(
&mut self,
request: impl IntoRequest<DynSearchReq>,
) -> Result<Response<DynSearchReply>, Status>
pub async fn dyn_search( &mut self, request: impl IntoRequest<DynSearchReq>, ) -> Result<Response<DynSearchReply>, Status>
Sourcepub async fn dyn_server_details(
&mut self,
request: impl IntoRequest<DynServerDetailsReq>,
) -> Result<Response<DynServerDetailsReply>, Status>
pub async fn dyn_server_details( &mut self, request: impl IntoRequest<DynServerDetailsReq>, ) -> Result<Response<DynServerDetailsReply>, Status>
Sourcepub async fn dyn_space(
&mut self,
request: impl IntoRequest<DynSpaceReq>,
) -> Result<Response<DynSpaceRsp>, Status>
pub async fn dyn_space( &mut self, request: impl IntoRequest<DynSpaceReq>, ) -> Result<Response<DynSpaceRsp>, Status>
Sourcepub async fn dyn_space_search_details(
&mut self,
request: impl IntoRequest<DynSpaceSearchDetailsReq>,
) -> Result<Response<DynSpaceSearchDetailsReply>, Status>
pub async fn dyn_space_search_details( &mut self, request: impl IntoRequest<DynSpaceSearchDetailsReq>, ) -> Result<Response<DynSpaceSearchDetailsReply>, Status>
Sourcepub async fn dyn_tab(
&mut self,
request: impl IntoRequest<DynTabReq>,
) -> Result<Response<DynTabReply>, Status>
pub async fn dyn_tab( &mut self, request: impl IntoRequest<DynTabReq>, ) -> Result<Response<DynTabReply>, Status>
Sourcepub async fn dyn_thumb(
&mut self,
request: impl IntoRequest<DynThumbReq>,
) -> Result<Response<NoReply>, Status>
pub async fn dyn_thumb( &mut self, request: impl IntoRequest<DynThumbReq>, ) -> Result<Response<NoReply>, Status>
Sourcepub async fn dyn_un_login_rcmd(
&mut self,
request: impl IntoRequest<DynRcmdReq>,
) -> Result<Response<DynRcmdReply>, Status>
pub async fn dyn_un_login_rcmd( &mut self, request: impl IntoRequest<DynRcmdReq>, ) -> Result<Response<DynRcmdReply>, Status>
Sourcepub async fn dyn_video(
&mut self,
request: impl IntoRequest<DynVideoReq>,
) -> Result<Response<DynVideoReply>, Status>
pub async fn dyn_video( &mut self, request: impl IntoRequest<DynVideoReq>, ) -> Result<Response<DynVideoReply>, Status>
Sourcepub async fn dyn_video_personal(
&mut self,
request: impl IntoRequest<DynVideoPersonalReq>,
) -> Result<Response<DynVideoPersonalReply>, Status>
pub async fn dyn_video_personal( &mut self, request: impl IntoRequest<DynVideoPersonalReq>, ) -> Result<Response<DynVideoPersonalReply>, Status>
Sourcepub async fn dyn_video_upd_offset(
&mut self,
request: impl IntoRequest<DynVideoUpdOffsetReq>,
) -> Result<Response<NoReply>, Status>
pub async fn dyn_video_upd_offset( &mut self, request: impl IntoRequest<DynVideoUpdOffsetReq>, ) -> Result<Response<NoReply>, Status>
Sourcepub async fn dyn_vote(
&mut self,
request: impl IntoRequest<DynVoteReq>,
) -> Result<Response<DynVoteReply>, Status>
pub async fn dyn_vote( &mut self, request: impl IntoRequest<DynVoteReq>, ) -> Result<Response<DynVoteReply>, Status>
Sourcepub async fn feed_filter(
&mut self,
request: impl IntoRequest<FeedFilterReq>,
) -> Result<Response<FeedFilterReply>, Status>
pub async fn feed_filter( &mut self, request: impl IntoRequest<FeedFilterReq>, ) -> Result<Response<FeedFilterReply>, Status>
Sourcepub async fn fetch_tab_setting(
&mut self,
request: impl IntoRequest<NoReq>,
) -> Result<Response<FetchTabSettingReply>, Status>
pub async fn fetch_tab_setting( &mut self, request: impl IntoRequest<NoReq>, ) -> Result<Response<FetchTabSettingReply>, Status>
Sourcepub async fn home_subscribe(
&mut self,
request: impl IntoRequest<HomeSubscribeReq>,
) -> Result<Response<HomeSubscribeReply>, Status>
pub async fn home_subscribe( &mut self, request: impl IntoRequest<HomeSubscribeReq>, ) -> Result<Response<HomeSubscribeReply>, Status>
Sourcepub async fn lbs_poi(
&mut self,
request: impl IntoRequest<LbsPoiReq>,
) -> Result<Response<LbsPoiReply>, Status>
pub async fn lbs_poi( &mut self, request: impl IntoRequest<LbsPoiReq>, ) -> Result<Response<LbsPoiReply>, Status>
Sourcepub async fn legacy_topic_feed(
&mut self,
request: impl IntoRequest<LegacyTopicFeedReq>,
) -> Result<Response<LegacyTopicFeedReply>, Status>
pub async fn legacy_topic_feed( &mut self, request: impl IntoRequest<LegacyTopicFeedReq>, ) -> Result<Response<LegacyTopicFeedReply>, Status>
Sourcepub async fn like_list(
&mut self,
request: impl IntoRequest<LikeListReq>,
) -> Result<Response<LikeListReply>, Status>
pub async fn like_list( &mut self, request: impl IntoRequest<LikeListReq>, ) -> Result<Response<LikeListReply>, Status>
Sourcepub async fn official_accounts(
&mut self,
request: impl IntoRequest<OfficialAccountsReq>,
) -> Result<Response<OfficialAccountsReply>, Status>
pub async fn official_accounts( &mut self, request: impl IntoRequest<OfficialAccountsReq>, ) -> Result<Response<OfficialAccountsReply>, Status>
Sourcepub async fn official_dynamics(
&mut self,
request: impl IntoRequest<OfficialDynamicsReq>,
) -> Result<Response<OfficialDynamicsReply>, Status>
pub async fn official_dynamics( &mut self, request: impl IntoRequest<OfficialDynamicsReq>, ) -> Result<Response<OfficialDynamicsReply>, Status>
Sourcepub async fn quick_consume_more_avatar_list(
&mut self,
request: impl IntoRequest<QuickConsumeMoreAvatarListReq>,
) -> Result<Response<QuickConsumeMoreAvatarListReply>, Status>
pub async fn quick_consume_more_avatar_list( &mut self, request: impl IntoRequest<QuickConsumeMoreAvatarListReq>, ) -> Result<Response<QuickConsumeMoreAvatarListReply>, Status>
Sourcepub async fn reaction_list(
&mut self,
request: impl IntoRequest<ReactionListReq>,
) -> Result<Response<ReactionListReply>, Status>
pub async fn reaction_list( &mut self, request: impl IntoRequest<ReactionListReq>, ) -> Result<Response<ReactionListReply>, Status>
Sourcepub async fn repost_list(
&mut self,
request: impl IntoRequest<RepostListReq>,
) -> Result<Response<RepostListRsp>, Status>
pub async fn repost_list( &mut self, request: impl IntoRequest<RepostListReq>, ) -> Result<Response<RepostListRsp>, Status>
Sourcepub async fn school_recommend(
&mut self,
request: impl IntoRequest<SchoolRecommendReq>,
) -> Result<Response<SchoolRecommendReply>, Status>
pub async fn school_recommend( &mut self, request: impl IntoRequest<SchoolRecommendReq>, ) -> Result<Response<SchoolRecommendReply>, Status>
Sourcepub async fn school_search(
&mut self,
request: impl IntoRequest<SchoolSearchReq>,
) -> Result<Response<SchoolSearchReply>, Status>
pub async fn school_search( &mut self, request: impl IntoRequest<SchoolSearchReq>, ) -> Result<Response<SchoolSearchReply>, Status>
Sourcepub async fn set_decision(
&mut self,
request: impl IntoRequest<SetDecisionReq>,
) -> Result<Response<NoReply>, Status>
pub async fn set_decision( &mut self, request: impl IntoRequest<SetDecisionReq>, ) -> Result<Response<NoReply>, Status>
Sourcepub async fn set_recent_campus(
&mut self,
request: impl IntoRequest<SetRecentCampusReq>,
) -> Result<Response<NoReply>, Status>
pub async fn set_recent_campus( &mut self, request: impl IntoRequest<SetRecentCampusReq>, ) -> Result<Response<NoReply>, Status>
Sourcepub async fn subscribe_campus(
&mut self,
request: impl IntoRequest<SubscribeCampusReq>,
) -> Result<Response<NoReply>, Status>
pub async fn subscribe_campus( &mut self, request: impl IntoRequest<SubscribeCampusReq>, ) -> Result<Response<NoReply>, Status>
Sourcepub async fn subscription_click(
&mut self,
request: impl IntoRequest<SubscriptionClickReq>,
) -> Result<Response<SubscriptionClickResp>, Status>
pub async fn subscription_click( &mut self, request: impl IntoRequest<SubscriptionClickReq>, ) -> Result<Response<SubscriptionClickResp>, Status>
Sourcepub async fn topic_list(
&mut self,
request: impl IntoRequest<TopicListReq>,
) -> Result<Response<TopicListReply>, Status>
pub async fn topic_list( &mut self, request: impl IntoRequest<TopicListReq>, ) -> Result<Response<TopicListReply>, Status>
Sourcepub async fn topic_square(
&mut self,
request: impl IntoRequest<TopicSquareReq>,
) -> Result<Response<TopicSquareReply>, Status>
pub async fn topic_square( &mut self, request: impl IntoRequest<TopicSquareReq>, ) -> Result<Response<TopicSquareReply>, Status>
Sourcepub async fn unfollow_match(
&mut self,
request: impl IntoRequest<UnfollowMatchReq>,
) -> Result<Response<NoReply>, Status>
pub async fn unfollow_match( &mut self, request: impl IntoRequest<UnfollowMatchReq>, ) -> Result<Response<NoReply>, Status>
Sourcepub async fn update_tab_setting(
&mut self,
request: impl IntoRequest<UpdateTabSettingReq>,
) -> Result<Response<NoReply>, Status>
pub async fn update_tab_setting( &mut self, request: impl IntoRequest<UpdateTabSettingReq>, ) -> Result<Response<NoReply>, Status>
Trait Implementations§
Source§impl<T: Clone> Clone for DynamicClient<T>
impl<T: Clone> Clone for DynamicClient<T>
Source§fn clone(&self) -> DynamicClient<T>
fn clone(&self) -> DynamicClient<T>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<T> !Freeze for DynamicClient<T>
impl<T> RefUnwindSafe for DynamicClient<T>where
T: RefUnwindSafe,
impl<T> Send for DynamicClient<T>where
T: Send,
impl<T> Sync for DynamicClient<T>where
T: Sync,
impl<T> Unpin for DynamicClient<T>where
T: Unpin,
impl<T> UnwindSafe for DynamicClient<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