Module pastemyst::paste [−][src]
The paste namespace which contains
every method and struct to
GET
and POST
(send) a paste
to pastemyst.
API Docs
The relevent API documentation for this module is: https://paste.myst.rs/api-docs/paste
Structs
CreateObject | The structure object that holds
the base to create a paste. This
is then sent to pastemyst. All
fields are optional except the
|
EditHistory | Infomation about edits in a pasty in a paste. |
EditObject | The same as |
PasteObject | The paste object recieved when
getting a paste. It contains
both the |
PastyObject | Information about a specific pasty in a paste. |
Functions
create_paste | Uses the |
create_paste_async | Uses the |
create_private_paste | Uses the |
create_private_paste_async | Uses the |
delete_paste | You can only delete pastes on your account, which means you must also provide the authorization key. This action is irreversible can the paste cannot be restored in any way. This methods sends the request synchronously. |
delete_paste_async | You can only delete pastes on your account, which means you must also provide the authorization key. This action is irreversible can the paste cannot be restored in any way. This methods sends the request asynchronously. |
edit_paste | Sends a request to pastemyst to edit a
specific paste. You need to provide the
|
edit_paste_async | Sends a request to pastemyst to edit a
specific paste. You need to provide the
|
get_paste | Gets a paste's data in json format
from pastemyst
synchronously. It returns a |
get_paste_async | Gets a paste's data in json format
from pastemyst
asynchronously. It returns a |
get_private_paste | Gets a private paste's data in json format
from pastemyst
synchronously. It returns a |
get_private_paste_async | Gets a private paste's data in json format
from pastemyst
asynchronously. It returns a |
Type Definitions
PasteResult | The PasteResult type provided by this library for ease. It has a return value and error. |