Struct LineClient

Source
pub struct LineClient { /* private fields */ }

Implementations§

Source§

impl LineClient

Source

pub async fn bot_info(&self) -> LineApiResponse<LineApiBotInfoResponse>

https://developers.line.biz/ja/reference/messaging-api/#get-bot-info

Source§

impl LineClient

Source

pub async fn insight_message_delivery( &self, date: &str, ) -> LineApiResponse<LineApiInsightMessageDeliveryResponse>

https://developers.line.biz/ja/reference/messaging-api/#get-number-of-delivery-messages

Source

pub async fn insight_followers( &self, date: &str, ) -> LineApiResponse<LineApiInsightFollowersResponse>

https://developers.line.biz/ja/reference/messaging-api/#get-number-of-followers

Source

pub async fn insight_demographic( &self, ) -> LineApiResponse<LineApiInsightDemographicResponse>

https://developers.line.biz/ja/reference/messaging-api/#get-demographic

Source

pub async fn insight_message_event( &self, request_id: &str, ) -> LineApiResponse<Value>

https://developers.line.biz/ja/reference/messaging-api/#get-demographic

Source

pub async fn insight_message_event_aggregation( &self, custom_aggregation_unit: &str, from: &str, to: &str, ) -> LineApiResponse<Value>

https://developers.line.biz/ja/reference/messaging-api/#get-statistics-per-unit

Source§

impl LineClient

Source

pub async fn message_send_reply( &self, request: &LineApiMessageReplyRequest, ) -> LineApiResponse<LineApiMessageReplyResponse>

https://developers.line.biz/ja/reference/messaging-api/#send-reply-message

Source

pub async fn message_send_push( &self, request: &LineApiMessagePushRequest, ) -> LineApiResponse<LineApiMessagePushResponse>

https://developers.line.biz/ja/reference/messaging-api/#send-push-message

Source

pub async fn message_send_multicast( &self, request: &LineApiMessageMulticastRequest, ) -> LineApiResponse<LineApiMessageSendMulticastResponse>

https://developers.line.biz/ja/reference/messaging-api/#send-multicast-message

Source

pub async fn message_send_broadcast( &self, request: &LineApiMessageBroadcastRequest, ) -> LineApiResponse<LineApiMessageSendBroadcastResponse>

Source

pub async fn message_get_quota( &self, ) -> LineApiResponse<LineApiMessageGetQuotaResponse>

https://developers.line.biz/ja/reference/messaging-api/#get-quota

Source

pub async fn message_get_quota_consumption( &self, ) -> LineApiResponse<LineApiMessageGetQuotaConsumptionResponse>

https://developers.line.biz/ja/reference/messaging-api/#get-consumption

Source

pub async fn message_get_number_of_reply_messages( &self, date: &str, ) -> LineApiResponse<LineApiMessageGetNumberOfReplyMessageResponse>

https://developers.line.biz/ja/reference/messaging-api/#get-number-of-reply-messages

Source

pub async fn message_get_number_of_push_messages( &self, date: &str, ) -> LineApiResponse<LineApiMessageGetNumberOfPushMessageResponse>

https://developers.line.biz/ja/reference/messaging-api/#get-number-of-push-messages

Source

pub async fn message_get_number_of_multicast_messages( &self, date: &str, ) -> LineApiResponse<LineApiMessageGetNumberOfMulticastMessageResponse>

https://developers.line.biz/ja/reference/messaging-api/#get-number-of-push-messages

Source

pub async fn message_get_number_of_broadcast_messages( &self, date: &str, ) -> LineApiResponse<LineApiMessageGetNumberOfBroadcastMessageResponse>

https://developers.line.biz/ja/reference/messaging-api/#get-number-of-broadcast-messages

Source

pub async fn message_validate_reply( &self, data: &Vec<Value>, ) -> LineApiResponse<LineApiMessageValidateMessageObjectsOfReplyMessage>

https://developers.line.biz/ja/reference/messaging-api/#validate-message-objects-of-reply-message

Source

pub async fn message_validate_push( &self, data: &Vec<Value>, ) -> LineApiResponse<LineApiMessageValidateMessageObjectsOfPushMessage>

https://developers.line.biz/ja/reference/messaging-api/#validate-message-objects-of-push-message

Source

pub async fn message_validate_multicast( &self, data: &Vec<Value>, ) -> LineApiResponse<LineApiMessageValidateMessageObjectsOfMulticastMessage>

https://developers.line.biz/ja/reference/messaging-api/#validate-message-objects-of-multicast-message

Source

pub async fn message_validate_narrowcast( &self, data: &Vec<Value>, ) -> LineApiResponse<LineApiMessageValidateMessageObjectsOfNarrowcastMessage>

https://developers.line.biz/ja/reference/messaging-api/#validate-message-objects-of-narrowcast-message

Source

pub async fn message_validate_broadcast( &self, data: &Vec<Value>, ) -> LineApiResponse<LineApiMessageValidateMessageObjectsOfBroadcastMessage>

https://developers.line.biz/ja/reference/messaging-api/#validate-message-objects-of-broadcast-message

Source

pub async fn message_aggregation_info( &self, ) -> LineApiResponse<LineApiMessageAggregationInfoResponse>

https://developers.line.biz/ja/reference/messaging-api/#get-number-of-units-used-this-month

Source

pub async fn message_aggregation_list( &self, ) -> LineApiResponse<LineApiMessageAggregationListResponse>

https://developers.line.biz/ja/reference/messaging-api/#get-name-list-of-units-used-this-month

Source§

impl LineClient

Source

pub async fn profile( &self, user_id: &str, ) -> LineApiResponse<LineApiProfileResponse>

https://developers.line.biz/ja/reference/messaging-api/#get-profile

Source

pub async fn followers_ids( &self, request: &LineApiFollowersIdsRequest, ) -> LineApiResponse<Value>

https://developers.line.biz/ja/reference/messaging-api/#get-follower-ids

Source§

impl LineClient

Source

pub async fn rich_menu_create( &self, value: Value, ) -> LineApiResponse<LineApiRichMenuCreateResponse>

https://developers.line.biz/ja/reference/messaging-api/#create-rich-menu

Source

pub async fn rich_menu_validate_object( &self, value: Value, ) -> LineApiResponse<LineApiRichMenuValidateObjectResponse>

https://developers.line.biz/ja/reference/messaging-api/#create-rich-menu

Source

pub async fn rich_menu_content_upload( &self, rich_menu_id: &str, file: Vec<u8>, ) -> LineApiResponse<Value>

https://developers.line.biz/ja/reference/messaging-api/#delete-rich-menu

Source

pub async fn rich_menu_content_download( &self, rich_menu_id: &str, ) -> LineApiResponse<Vec<u8>>

https://developers.line.biz/ja/reference/messaging-api/#download-rich-menu-image

Source

pub async fn rich_menu_list( &self, ) -> LineApiResponse<LineApiRichMenuListResponse>

https://developers.line.biz/ja/reference/messaging-api/#get-rich-menu-list

Source

pub async fn rich_menu_delete( &self, rich_menu_id: &str, ) -> LineApiResponse<LineApiRichMenuDeleteResponse>

https://developers.line.biz/ja/reference/messaging-api/#delete-rich-menu

Source

pub async fn rich_menu_get( &self, rich_menu_id: &str, ) -> LineApiResponse<LineApiRichMenuGetResponse>

https://developers.line.biz/ja/reference/messaging-api/#delete-rich-menu

Source

pub async fn rich_menu_set_default_menu( &self, rich_menu_id: &str, ) -> LineApiResponse<LineApiRichMenuSetDefaultResponse>

https://developers.line.biz/ja/reference/messaging-api/#get-default-rich-menu-id

Source

pub async fn rich_menu_get_default_menu_id( &self, ) -> LineApiResponse<LineApiRichMenuGetDefaultResponse>

https://developers.line.biz/ja/reference/messaging-api/#get-default-rich-menu-id

Source

pub async fn rich_menu_delete_default_menu( &self, ) -> LineApiResponse<LineApiRichMenuDeleteDefaultResponse>

https://developers.line.biz/ja/reference/messaging-api/#cancel-default-rich-menu

Source§

impl LineClient

https://developers.line.biz/ja/reference/messaging-api/#create-rich-menu

https://developers.line.biz/ja/reference/messaging-api/#link-rich-menu-to-users

Source

pub async fn rich_menu_user_get_user_rich_menu_id( &self, user_id: &str, ) -> LineApiResponse<LineApiRichMenuUserGetUserRichMenuId>

https://developers.line.biz/ja/reference/messaging-api/#create-rich-menu

Source§

impl LineClient

Source

pub async fn webhook_endpoint_put( &self, endpoint: &str, ) -> LineApiResponse<Value>

https://developers.line.biz/ja/reference/messaging-api/#set-webhook-endpoint-url

Source

pub async fn webhook_endpoint_get( &self, ) -> LineApiResponse<LineApiWebhookEndpointGetResponse>

https://developers.line.biz/ja/reference/messaging-api/#get-webhook-endpoint-information

Source

pub async fn webhook_test( &self, request: &LineApiWebhookTestRequest, ) -> LineApiResponse<LineApiWebhookTestResponse>

https://developers.line.biz/ja/reference/messaging-api/#get-webhook-endpoint-information

Source§

impl LineClient

Source

pub async fn rich_menu_alias_create( &self, value: Value, ) -> LineApiResponse<Value>

Source

pub async fn rich_menu_alias_delete( &self, rich_menu_alias_id: String, ) -> LineApiResponse<Value>

Source

pub async fn rich_menu_alias_update( &self, rich_menu_alias_id: String, value: Value, ) -> LineApiResponse<Value>

Source

pub async fn rich_menu_alias_get( &self, rich_menu_alias_id: String, ) -> LineApiResponse<LineApiRichMenuAliasGetResponse>

Source

pub async fn rich_menu_alias_list( &self, ) -> LineApiResponse<LineApiRichMenuAliasListResponse>

Source§

impl LineClient

Source

pub fn new(token: &str) -> Self

Auto Trait Implementations§

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> 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, 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
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T