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 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.

§

impl<T> Instrument for T

§

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

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

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

§

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

§

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.
§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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