Paste

struct representing a paste.

Members

Variables

createdAt
ulong createdAt;

when the paste is created, using unix time.

deletesAt
ulong deletesAt;

when the paste will get deleted, if expiresIn is set to never, this value is set to 0;

edits
Edit[] edits;

array of paste edits

encrypted
bool encrypted;

is the paste encrytped?

expiresIn
ExpiresIn expiresIn;

when the paste expires.

id
string id;

paste id

isPrivate
bool isPrivate;

if the paste is private.

isPublic
bool isPublic;

does the paste show up on the user's public profile?

ownerId
string ownerId;

owner of the paste. if no owner then this value should be an empty string.

pasties
Pasty[] pasties;

pasties of the paste. a paste can have multiple pasties which are sort of like "files".

stars
ulong stars;

number of stars

tags
string[] tags;

array of all tags for this paste

title
string title;

title of the paste.

Meta