Struct urbit_http_api::apps::notebook::Notebook[][src]

pub struct Notebook<'a> {
    pub channel: &'a mut Channel,
}
Expand description

A struct that provides an interface for interacting with Urbit notebooks

Fields

channel: &'a mut Channel

Implementations

Extracts a Notebook’s graph from the connected ship and parses it into a vector of Notes

Fetch a note object given an index note_index. This note index can be the root index of the note or any of the child indexes of the note. If a child index for a specific revision of the note is passed then that revision will be fetched, otherwise latest revision is the default.

Fetches the latest version of a note based on providing the index of a comment on said note. This is technically just a wrapper around fetch_note, but is implemented as a separate method to prevent overloading method meaning/documentation thereby preventing confusion.

Find the index of the latest revision of a note given an index note_index note_index can be any valid note index (even an index of a comment on the note)

Fetch a comment given an index comment_index. Index can be the comment root node index, or index of any revision. Will fetch most recent revision if passed root node index

Fetch index of latest revision of a comment given an index comment_index. Index can be the comment root node index, or the index of any revision of the comment.

Adds a new note to the notebook. Returns the index of the newly created first revision of the note.

Update an existing note with a new title and body. note_index can be any valid note index. Returns index of the newly created revision.

Add a new comment to a specific note inside of a notebook specified by note_index note_index can be any valid note/revision, and even the index of other comments.

Update an existing comment on a note. comment_index must be a valid index for a comment for a note within the notebook specified which your ship has edit rights for. Returns index of the new comment revision

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

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

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

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