[−][src]Module places::storage::bookmarks
Re-exports
pub use public_node::PublicNode; |
Modules
| bookmark_sync | |
| conversions | |
| public_node | |
| root_guid |
Structs
| BookmarkNode | |
| FetchedTreeRow | |
| FolderNode | |
| InsertableBookmark | Structures which can be used to insert a bookmark, folder or separator. |
| InsertableFolder | |
| InsertableSeparator | |
| RawBookmark | A "raw" bookmark - a representation of the row and some summary fields. |
| SeparatorNode | |
| UpdatableBookmark | Structures which can be used to update a bookmark, folder or separator. Almost all fields are Option<>-like, with None meaning "do not change". Many fields which can't be changed by our public API are omitted (eg, guid, date_added, last_modified, etc) |
| UpdatableFolder | |
| UpdatableSeparator |
Enums
| BookmarkPosition | |
| BookmarkRootGuid | Special GUIDs associated with bookmark roots. It's guaranteed that the roots will always have these guids. |
| BookmarkTreeNode | |
| FetchDepth | |
| InsertableItem | |
| UpdatableItem | |
| UpdateTreeLocation | Support for modifying bookmarks, including changing the location in the tree. |
Constants
| RAW_BOOKMARK_SQL | sql is based on fetchBookmark() in Desktop's Bookmarks.jsm, with 'fk' added and title's NULLIF handling. |
| USER_CONTENT_ROOTS |
Functions
| add_subtree_infos | |
| bookmarks_get_url_for_keyword | Get the URL of the bookmark matching a keyword |
| create_bookmark_roots | |
| create_root | |
| delete_bookmark | Delete the specified bookmark. Returns true if a bookmark with the guid existed and was deleted, false otherwise. |
| delete_bookmark_in_tx | |
| delete_everything | Erases all bookmarks and resets all Sync metadata. |
| fetch_tree | Fetch the tree starting at the specified guid.
Returns a |
| get_raw_bookmark | |
| get_raw_bookmarks_for_url | |
| inflate | |
| insert_bookmark | |
| insert_bookmark_in_tx | |
| insert_tree | |
| maybe_truncate_title | |
| reset_in_tx | |
| resolve_pos_for_insert | Helpers to deal with managing the position correctly. Updates the position of existing items so that the insertion of a child in the position specified leaves all siblings with the correct position. Returns the index the item should be inserted at. |
| set_ancestors_last_modified | |
| update_bookmark | |
| update_bookmark_in_tx | |
| update_pos_for_deletion | Updates the position of existing items so that the deletion of a child from the position specified leaves all siblings with the correct position. |
| update_pos_for_move | Updates the position of existing items when an item is being moved in the same folder. Returns what the position should be updated to. |