mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-27 07:46:25 +00:00
feat(core): hubs, tag pages and types, with ffi, history and import support
Hubs and templates are page kinds; tags are pages of kind tag linked by a TAGGED edge; types are plain names on the page. Schema v5. Snapshots carry synapse-kind/tags/types. Also adapts search, import and server tests. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
91a8276966
commit
b800248d67
35 files changed
+7983
-141
No files matched your search
@@ -8,7 +8,7 @@ import '../frb_generated.dart';
|
||||
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
|
||||
|
||||
// These functions are ignored because they are not marked as `pub`: `new`
|
||||
// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_fields_are_eq`, `assert_fields_are_eq`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`
|
||||
// These function are ignored because they are on traits that is not defined in current crate (put an empty `#[frb]` on it to unignore): `assert_fields_are_eq`, `assert_fields_are_eq`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `clone`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `eq`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `fmt`, `from`, `from`
|
||||
|
||||
class AssetDto {
|
||||
final String hash;
|
||||
@@ -236,7 +236,8 @@ class GraphNode {
|
||||
final String? originJournal;
|
||||
final PlatformInt64 createdAt;
|
||||
|
||||
/// Distinct neighbours over structural edges (links, tags, properties, block refs).
|
||||
/// Distinct neighbours over structural edges (links, tags, properties, block refs, hub
|
||||
/// membership).
|
||||
final int degree;
|
||||
|
||||
/// Distinct pages referencing this one.
|
||||
@@ -248,6 +249,15 @@ class GraphNode {
|
||||
/// Node index of the tag this page uses most, if any.
|
||||
final int? primaryTag;
|
||||
|
||||
/// The page is a hub (`PageKind::Hub`).
|
||||
final bool isHub;
|
||||
|
||||
/// Node index of the deepest hub containing this page (a hub: itself).
|
||||
final int? homeHub;
|
||||
|
||||
/// Tag names of the page (see `PageDto::tags`), for grouping by tag.
|
||||
final List<String> tags;
|
||||
|
||||
const GraphNode({
|
||||
required this.id,
|
||||
required this.title,
|
||||
@@ -258,6 +268,9 @@ class GraphNode {
|
||||
required this.backlinks,
|
||||
required this.cluster,
|
||||
this.primaryTag,
|
||||
required this.isHub,
|
||||
this.homeHub,
|
||||
required this.tags,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -270,7 +283,10 @@ class GraphNode {
|
||||
degree.hashCode ^
|
||||
backlinks.hashCode ^
|
||||
cluster.hashCode ^
|
||||
primaryTag.hashCode;
|
||||
primaryTag.hashCode ^
|
||||
isHub.hashCode ^
|
||||
homeHub.hashCode ^
|
||||
tags.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
@@ -285,7 +301,127 @@ class GraphNode {
|
||||
degree == other.degree &&
|
||||
backlinks == other.backlinks &&
|
||||
cluster == other.cluster &&
|
||||
primaryTag == other.primaryTag;
|
||||
primaryTag == other.primaryTag &&
|
||||
isHub == other.isHub &&
|
||||
homeHub == other.homeHub &&
|
||||
tags == other.tags;
|
||||
}
|
||||
|
||||
/// A hub (folder-like page) with its members.
|
||||
class HubDto {
|
||||
final String id;
|
||||
final String title;
|
||||
final String description;
|
||||
|
||||
/// 0 for root hubs, one more per level of nesting.
|
||||
final int depth;
|
||||
|
||||
/// Sub-hubs first, then notes, each by title.
|
||||
final List<PageBrief> members;
|
||||
|
||||
/// Ids of the members that are hubs themselves.
|
||||
final List<String> subHubs;
|
||||
|
||||
const HubDto({
|
||||
required this.id,
|
||||
required this.title,
|
||||
required this.description,
|
||||
required this.depth,
|
||||
required this.members,
|
||||
required this.subHubs,
|
||||
});
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
id.hashCode ^
|
||||
title.hashCode ^
|
||||
description.hashCode ^
|
||||
depth.hashCode ^
|
||||
members.hashCode ^
|
||||
subHubs.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is HubDto &&
|
||||
runtimeType == other.runtimeType &&
|
||||
id == other.id &&
|
||||
title == other.title &&
|
||||
description == other.description &&
|
||||
depth == other.depth &&
|
||||
members == other.members &&
|
||||
subHubs == other.subHubs;
|
||||
}
|
||||
|
||||
/// Defaults for the "convert to hub" dialog.
|
||||
class HubPreviewDto {
|
||||
/// Last namespace segment of the title.
|
||||
final String suggestedTitle;
|
||||
|
||||
/// First prose block as plain text (<= 280 chars).
|
||||
final String suggestedDescription;
|
||||
|
||||
/// Candidate members: pages the outline links or tags (outline order), then pages
|
||||
/// referencing the note from properties or tags.
|
||||
final List<PageBrief> members;
|
||||
|
||||
/// Blocks that are prose rather than links (what "keep the outline" would save).
|
||||
final int proseBlocks;
|
||||
final int blocks;
|
||||
|
||||
/// `"<suggested_title> (notes)"`, for the note receiving the outline.
|
||||
final String suggestedNoteTitle;
|
||||
|
||||
const HubPreviewDto({
|
||||
required this.suggestedTitle,
|
||||
required this.suggestedDescription,
|
||||
required this.members,
|
||||
required this.proseBlocks,
|
||||
required this.blocks,
|
||||
required this.suggestedNoteTitle,
|
||||
});
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
suggestedTitle.hashCode ^
|
||||
suggestedDescription.hashCode ^
|
||||
members.hashCode ^
|
||||
proseBlocks.hashCode ^
|
||||
blocks.hashCode ^
|
||||
suggestedNoteTitle.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is HubPreviewDto &&
|
||||
runtimeType == other.runtimeType &&
|
||||
suggestedTitle == other.suggestedTitle &&
|
||||
suggestedDescription == other.suggestedDescription &&
|
||||
members == other.members &&
|
||||
proseBlocks == other.proseBlocks &&
|
||||
blocks == other.blocks &&
|
||||
suggestedNoteTitle == other.suggestedNoteTitle;
|
||||
}
|
||||
|
||||
class HubsDto {
|
||||
/// Sorted by title.
|
||||
final List<HubDto> hubs;
|
||||
|
||||
/// Ids of the hubs that are not a member of any hub, by title.
|
||||
final List<String> roots;
|
||||
|
||||
const HubsDto({required this.hubs, required this.roots});
|
||||
|
||||
@override
|
||||
int get hashCode => hubs.hashCode ^ roots.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is HubsDto &&
|
||||
runtimeType == other.runtimeType &&
|
||||
hubs == other.hubs &&
|
||||
roots == other.roots;
|
||||
}
|
||||
|
||||
/// One batch of layout iterations.
|
||||
@@ -310,19 +446,77 @@ class LayoutFrame {
|
||||
alpha == other.alpha;
|
||||
}
|
||||
|
||||
/// A page the legacy purge offers to delete.
|
||||
class LegacyCandidate {
|
||||
final String id;
|
||||
final String title;
|
||||
final String reason;
|
||||
final int blocks;
|
||||
final bool preselected;
|
||||
|
||||
const LegacyCandidate({
|
||||
required this.id,
|
||||
required this.title,
|
||||
required this.reason,
|
||||
required this.blocks,
|
||||
required this.preselected,
|
||||
});
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
id.hashCode ^
|
||||
title.hashCode ^
|
||||
reason.hashCode ^
|
||||
blocks.hashCode ^
|
||||
preselected.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is LegacyCandidate &&
|
||||
runtimeType == other.runtimeType &&
|
||||
id == other.id &&
|
||||
title == other.title &&
|
||||
reason == other.reason &&
|
||||
blocks == other.blocks &&
|
||||
preselected == other.preselected;
|
||||
}
|
||||
|
||||
/// A level of a namespace (`A/B` under `A`); `id` is `None` when only deeper pages exist.
|
||||
class NamespaceEntry {
|
||||
final String title;
|
||||
final String? id;
|
||||
|
||||
const NamespaceEntry({required this.title, this.id});
|
||||
|
||||
@override
|
||||
int get hashCode => title.hashCode ^ id.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is NamespaceEntry &&
|
||||
runtimeType == other.runtimeType &&
|
||||
title == other.title &&
|
||||
id == other.id;
|
||||
}
|
||||
|
||||
class PageBrief {
|
||||
final String id;
|
||||
final String title;
|
||||
final bool isJournal;
|
||||
final bool isHub;
|
||||
|
||||
const PageBrief({
|
||||
required this.id,
|
||||
required this.title,
|
||||
required this.isJournal,
|
||||
required this.isHub,
|
||||
});
|
||||
|
||||
@override
|
||||
int get hashCode => id.hashCode ^ title.hashCode ^ isJournal.hashCode;
|
||||
int get hashCode =>
|
||||
id.hashCode ^ title.hashCode ^ isJournal.hashCode ^ isHub.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
@@ -331,7 +525,8 @@ class PageBrief {
|
||||
runtimeType == other.runtimeType &&
|
||||
id == other.id &&
|
||||
title == other.title &&
|
||||
isJournal == other.isJournal;
|
||||
isJournal == other.isJournal &&
|
||||
isHub == other.isHub;
|
||||
}
|
||||
|
||||
/// Everything the page view needs in one call.
|
||||
@@ -385,6 +580,21 @@ class PageDto {
|
||||
final PlatformInt64 createdAt;
|
||||
final PlatformInt64 updatedAt;
|
||||
|
||||
/// The page is a hub (no blocks; members list instead of an outline).
|
||||
final bool isHub;
|
||||
|
||||
/// Hub description (empty for notes).
|
||||
final String description;
|
||||
|
||||
/// Titles of the tag pages this page is filed under, in the order they were added.
|
||||
final List<String> tags;
|
||||
|
||||
/// The page is a tag page (a topic that other pages are filed under).
|
||||
final bool isTag;
|
||||
|
||||
/// Type names ("persona", "lugar"...: plain names, not pages), in the order added.
|
||||
final List<String> types;
|
||||
|
||||
const PageDto({
|
||||
required this.id,
|
||||
required this.title,
|
||||
@@ -392,6 +602,11 @@ class PageDto {
|
||||
this.originJournal,
|
||||
required this.createdAt,
|
||||
required this.updatedAt,
|
||||
required this.isHub,
|
||||
required this.description,
|
||||
required this.tags,
|
||||
required this.isTag,
|
||||
required this.types,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -401,7 +616,12 @@ class PageDto {
|
||||
journalDate.hashCode ^
|
||||
originJournal.hashCode ^
|
||||
createdAt.hashCode ^
|
||||
updatedAt.hashCode;
|
||||
updatedAt.hashCode ^
|
||||
isHub.hashCode ^
|
||||
description.hashCode ^
|
||||
tags.hashCode ^
|
||||
isTag.hashCode ^
|
||||
types.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
@@ -413,7 +633,60 @@ class PageDto {
|
||||
journalDate == other.journalDate &&
|
||||
originJournal == other.originJournal &&
|
||||
createdAt == other.createdAt &&
|
||||
updatedAt == other.updatedAt;
|
||||
updatedAt == other.updatedAt &&
|
||||
isHub == other.isHub &&
|
||||
description == other.description &&
|
||||
tags == other.tags &&
|
||||
isTag == other.isTag &&
|
||||
types == other.types;
|
||||
}
|
||||
|
||||
/// Hub and namespace context of one page.
|
||||
class PageStructure {
|
||||
final bool isHub;
|
||||
|
||||
/// Hub description (empty for notes).
|
||||
final String description;
|
||||
|
||||
/// Empty unless the page is a hub; sub-hubs first, then notes.
|
||||
final List<PageBrief> members;
|
||||
|
||||
/// Hubs the page belongs to (its own membership list), by title.
|
||||
final List<PageBrief> inHubs;
|
||||
|
||||
/// Ancestor namespaces from the root: `A`, `A/B` for `A/B/C` (they may not exist).
|
||||
final List<NamespaceEntry> nsPath;
|
||||
final List<NamespaceEntry> nsChildren;
|
||||
|
||||
const PageStructure({
|
||||
required this.isHub,
|
||||
required this.description,
|
||||
required this.members,
|
||||
required this.inHubs,
|
||||
required this.nsPath,
|
||||
required this.nsChildren,
|
||||
});
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
isHub.hashCode ^
|
||||
description.hashCode ^
|
||||
members.hashCode ^
|
||||
inHubs.hashCode ^
|
||||
nsPath.hashCode ^
|
||||
nsChildren.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is PageStructure &&
|
||||
runtimeType == other.runtimeType &&
|
||||
isHub == other.isHub &&
|
||||
description == other.description &&
|
||||
members == other.members &&
|
||||
inHubs == other.inHubs &&
|
||||
nsPath == other.nsPath &&
|
||||
nsChildren == other.nsChildren;
|
||||
}
|
||||
|
||||
class Place {
|
||||
@@ -464,6 +737,35 @@ class RelatedDto {
|
||||
score == other.score;
|
||||
}
|
||||
|
||||
/// A tag or type of the vocabulary.
|
||||
class TagDto {
|
||||
final String name;
|
||||
|
||||
/// Pages using it.
|
||||
final int count;
|
||||
|
||||
/// One of the seeded suggestions.
|
||||
final bool suggested;
|
||||
|
||||
const TagDto({
|
||||
required this.name,
|
||||
required this.count,
|
||||
required this.suggested,
|
||||
});
|
||||
|
||||
@override
|
||||
int get hashCode => name.hashCode ^ count.hashCode ^ suggested.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is TagDto &&
|
||||
runtimeType == other.runtimeType &&
|
||||
name == other.name &&
|
||||
count == other.count &&
|
||||
suggested == other.suggested;
|
||||
}
|
||||
|
||||
class TimelineDayDto {
|
||||
final String date;
|
||||
final String? journalId;
|
||||
|
||||
@@ -15,6 +15,14 @@ import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
|
||||
abstract class SynapseGraph implements RustOpaqueInterface {
|
||||
Future<void> addAlias({required String pageId, required String alias});
|
||||
|
||||
Future<PageDto> addPageTag({required String pageId, required String tag});
|
||||
|
||||
Future<PageDto> addPageType({required String pageId, required String ty});
|
||||
|
||||
/// Puts a page in a hub (no-op when it already is). Fails for journals, non-hub targets,
|
||||
/// the hub itself and memberships that would create a cycle.
|
||||
Future<void> addToHub({required String pageId, required String hubId});
|
||||
|
||||
Future<List<String>> aliases({required String pageId});
|
||||
|
||||
/// Local file path of an asset (for `asset://<hash>` images), if present.
|
||||
@@ -26,6 +34,32 @@ abstract class SynapseGraph implements RustOpaqueInterface {
|
||||
/// Target of a `((block ref))`.
|
||||
Future<BlockRefDto?> blockRef({required String id});
|
||||
|
||||
/// Turns a note into a hub in one transaction: renames it to `title` (links rewritten),
|
||||
/// moves its outline to a new note `keep_outline_as` (or deletes it when `None`; a blank title is an error), sets the
|
||||
/// description and adds `member_ids` (invalid members are skipped).
|
||||
Future<PageDto> convertToHub({
|
||||
required String pageId,
|
||||
required String title,
|
||||
required String description,
|
||||
required List<String> memberIds,
|
||||
String? keepOutlineAs,
|
||||
});
|
||||
|
||||
/// Turns a hub back into a note: description, then one `[[Member]]` block per member.
|
||||
Future<PageDto> convertToNote({required String pageId});
|
||||
|
||||
/// Creates an empty hub. Fails when the title is taken.
|
||||
Future<PageDto> createHub({
|
||||
required String title,
|
||||
required String description,
|
||||
});
|
||||
|
||||
/// Creates a note in the hub, starting from a copy of the hub's template.
|
||||
Future<PageDto> createPageFromTemplate({
|
||||
required String hubId,
|
||||
required String title,
|
||||
});
|
||||
|
||||
/// Deletes a block and its subtree.
|
||||
Future<List<BlockDto>> deleteBlock({required String id});
|
||||
|
||||
@@ -38,6 +72,16 @@ abstract class SynapseGraph implements RustOpaqueInterface {
|
||||
/// graph changes.
|
||||
Future<GraphData> graphData();
|
||||
|
||||
/// Defaults for converting a note into a hub.
|
||||
Future<HubPreviewDto> hubConversionPreview({required String pageId});
|
||||
|
||||
/// Id of the hub's template page (created empty when missing). Open it like any note to
|
||||
/// edit the outline new notes of the hub start from.
|
||||
Future<String> hubTemplate({required String hubId});
|
||||
|
||||
/// Every hub with its members, and the root hubs.
|
||||
Future<HubsDto> hubs();
|
||||
|
||||
/// Tab: the block becomes the last child of its previous sibling (no-op for a first child).
|
||||
Future<List<BlockDto>> indentBlock({required String id});
|
||||
|
||||
@@ -56,6 +100,12 @@ abstract class SynapseGraph implements RustOpaqueInterface {
|
||||
/// journal); otherwise at the newest journal strictly before `before`.
|
||||
Future<List<PageData>> journals({String? before, required int limit});
|
||||
|
||||
/// Pages that are probably leftovers of Logseq: its built-ins and pages with
|
||||
/// `type:: system`. Only the organisational files (`contents`, `card`, `favorites`,
|
||||
/// `hls__*`) and empty pages are preselected, and never a hub: a built-in title such as
|
||||
/// `todo` may hold real content.
|
||||
Future<List<LegacyCandidate>> legacyCandidates();
|
||||
|
||||
/// Pages ordered by last update, most recent first.
|
||||
Future<List<PageDto>> listPages({
|
||||
required bool includeJournals,
|
||||
@@ -95,6 +145,15 @@ abstract class SynapseGraph implements RustOpaqueInterface {
|
||||
/// Page by title or alias, without creating it.
|
||||
Future<PageData?> pageByTitle({required String title});
|
||||
|
||||
/// Hub and namespace context of a page.
|
||||
Future<PageStructure> pageStructure({required String pageId});
|
||||
|
||||
/// Pages carrying a tag, most recently updated first.
|
||||
Future<List<PageBrief>> pagesWithTag({required String tag});
|
||||
|
||||
/// Deletes pages and their blocks in one transaction. Returns how many existed.
|
||||
Future<int> purgePages({required List<String> ids});
|
||||
|
||||
/// Stores in-memory bytes (clipboard, Android content URIs).
|
||||
Future<AssetDto> putAssetBytes({
|
||||
required List<int> bytes,
|
||||
@@ -116,6 +175,13 @@ abstract class SynapseGraph implements RustOpaqueInterface {
|
||||
|
||||
Future<void> removeAlias({required String alias});
|
||||
|
||||
/// Takes a page out of a hub (no-op when it is not in it).
|
||||
Future<void> removeFromHub({required String pageId, required String hubId});
|
||||
|
||||
Future<PageDto> removePageTag({required String pageId, required String tag});
|
||||
|
||||
Future<PageDto> removePageType({required String pageId, required String ty});
|
||||
|
||||
Future<PageDto> renamePage({required String id, required String newTitle});
|
||||
|
||||
/// Blocks whose text contains `query` (for `((` autocomplete), most recent first.
|
||||
@@ -133,12 +199,36 @@ abstract class SynapseGraph implements RustOpaqueInterface {
|
||||
|
||||
Future<void> setCollapsed({required String id, required bool collapsed});
|
||||
|
||||
Future<PageDto> setHubDescription({
|
||||
required String hubId,
|
||||
required String description,
|
||||
});
|
||||
|
||||
/// Replaces the tags of a page (each title gets a tag page if it has none). Journals,
|
||||
/// templates and tag pages cannot be tagged.
|
||||
Future<PageDto> setPageTags({
|
||||
required String pageId,
|
||||
required List<String> tags,
|
||||
});
|
||||
|
||||
/// Replaces the types of a page. Journals and templates cannot be typed.
|
||||
Future<PageDto> setPageTypes({
|
||||
required String pageId,
|
||||
required List<String> types,
|
||||
});
|
||||
|
||||
/// Every tag page with its number of pages, most used first.
|
||||
Future<List<TagDto>> tagCatalog();
|
||||
|
||||
/// Timeline data for `[from, to]` (oldest first) with titles of every page it mentions.
|
||||
Future<TimelineDto> timeline({required String from, required String to});
|
||||
|
||||
/// Today's date (graph clock) as `YYYY-MM-DD`.
|
||||
String today();
|
||||
|
||||
/// Types in use (most used first) followed by the seeded suggestions not used yet.
|
||||
Future<List<TagDto>> typeCatalog();
|
||||
|
||||
/// Replaces a block's Markdown (the debounced save while typing).
|
||||
Future<void> updateBlock({required String id, required String content});
|
||||
}
|
||||
+1622
-42
File diff suppressed because it is too large.
Load diff
@@ -115,6 +115,15 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
GraphNode dco_decode_graph_node(dynamic raw);
|
||||
|
||||
@protected
|
||||
HubDto dco_decode_hub_dto(dynamic raw);
|
||||
|
||||
@protected
|
||||
HubPreviewDto dco_decode_hub_preview_dto(dynamic raw);
|
||||
|
||||
@protected
|
||||
HubsDto dco_decode_hubs_dto(dynamic raw);
|
||||
|
||||
@protected
|
||||
int dco_decode_i_32(dynamic raw);
|
||||
|
||||
@@ -124,6 +133,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
LayoutFrame dco_decode_layout_frame(dynamic raw);
|
||||
|
||||
@protected
|
||||
LegacyCandidate dco_decode_legacy_candidate(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<String> dco_decode_list_String(dynamic raw);
|
||||
|
||||
@@ -142,6 +154,15 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
List<GraphNode> dco_decode_list_graph_node(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<HubDto> dco_decode_list_hub_dto(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<LegacyCandidate> dco_decode_list_legacy_candidate(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<NamespaceEntry> dco_decode_list_namespace_entry(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<PageBrief> dco_decode_list_page_brief(dynamic raw);
|
||||
|
||||
@@ -172,12 +193,18 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
List<RelatedDto> dco_decode_list_related_dto(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<TagDto> dco_decode_list_tag_dto(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<TimelineDayDto> dco_decode_list_timeline_day_dto(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<TitleHit> dco_decode_list_title_hit(dynamic raw);
|
||||
|
||||
@protected
|
||||
NamespaceEntry dco_decode_namespace_entry(dynamic raw);
|
||||
|
||||
@protected
|
||||
String? dco_decode_opt_String(dynamic raw);
|
||||
|
||||
@@ -202,6 +229,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
PageDto dco_decode_page_dto(dynamic raw);
|
||||
|
||||
@protected
|
||||
PageStructure dco_decode_page_structure(dynamic raw);
|
||||
|
||||
@protected
|
||||
Place dco_decode_place(dynamic raw);
|
||||
|
||||
@@ -214,6 +244,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
RelatedDto dco_decode_related_dto(dynamic raw);
|
||||
|
||||
@protected
|
||||
TagDto dco_decode_tag_dto(dynamic raw);
|
||||
|
||||
@protected
|
||||
TimelineDayDto dco_decode_timeline_day_dto(dynamic raw);
|
||||
|
||||
@@ -324,6 +357,15 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
GraphNode sse_decode_graph_node(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
HubDto sse_decode_hub_dto(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
HubPreviewDto sse_decode_hub_preview_dto(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
HubsDto sse_decode_hubs_dto(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
int sse_decode_i_32(SseDeserializer deserializer);
|
||||
|
||||
@@ -333,6 +375,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
LayoutFrame sse_decode_layout_frame(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
LegacyCandidate sse_decode_legacy_candidate(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
List<String> sse_decode_list_String(SseDeserializer deserializer);
|
||||
|
||||
@@ -353,6 +398,19 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
List<GraphNode> sse_decode_list_graph_node(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
List<HubDto> sse_decode_list_hub_dto(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
List<LegacyCandidate> sse_decode_list_legacy_candidate(
|
||||
SseDeserializer deserializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
List<NamespaceEntry> sse_decode_list_namespace_entry(
|
||||
SseDeserializer deserializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
List<PageBrief> sse_decode_list_page_brief(SseDeserializer deserializer);
|
||||
|
||||
@@ -383,6 +441,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
List<RelatedDto> sse_decode_list_related_dto(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
List<TagDto> sse_decode_list_tag_dto(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
List<TimelineDayDto> sse_decode_list_timeline_day_dto(
|
||||
SseDeserializer deserializer,
|
||||
@@ -391,6 +452,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
List<TitleHit> sse_decode_list_title_hit(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
NamespaceEntry sse_decode_namespace_entry(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
String? sse_decode_opt_String(SseDeserializer deserializer);
|
||||
|
||||
@@ -419,6 +483,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
PageDto sse_decode_page_dto(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
PageStructure sse_decode_page_structure(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
Place sse_decode_place(SseDeserializer deserializer);
|
||||
|
||||
@@ -433,6 +500,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
RelatedDto sse_decode_related_dto(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
TagDto sse_decode_tag_dto(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
TimelineDayDto sse_decode_timeline_day_dto(SseDeserializer deserializer);
|
||||
|
||||
@@ -556,6 +626,15 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
void sse_encode_graph_node(GraphNode self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_hub_dto(HubDto self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_hub_preview_dto(HubPreviewDto self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_hubs_dto(HubsDto self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_i_32(int self, SseSerializer serializer);
|
||||
|
||||
@@ -565,6 +644,12 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
void sse_encode_layout_frame(LayoutFrame self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_legacy_candidate(
|
||||
LegacyCandidate self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_String(List<String> self, SseSerializer serializer);
|
||||
|
||||
@@ -589,6 +674,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_hub_dto(List<HubDto> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_legacy_candidate(
|
||||
List<LegacyCandidate> self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_namespace_entry(
|
||||
List<NamespaceEntry> self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_page_brief(
|
||||
List<PageBrief> self,
|
||||
@@ -640,6 +740,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_tag_dto(List<TagDto> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_timeline_day_dto(
|
||||
List<TimelineDayDto> self,
|
||||
@@ -649,6 +752,12 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
void sse_encode_list_title_hit(List<TitleHit> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_namespace_entry(
|
||||
NamespaceEntry self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_opt_String(String? self, SseSerializer serializer);
|
||||
|
||||
@@ -682,6 +791,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
void sse_encode_page_dto(PageDto self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_page_structure(PageStructure self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_place(Place self, SseSerializer serializer);
|
||||
|
||||
@@ -697,6 +809,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
void sse_encode_related_dto(RelatedDto self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_tag_dto(TagDto self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_timeline_day_dto(
|
||||
TimelineDayDto self,
|
||||
|
||||
@@ -117,6 +117,15 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
GraphNode dco_decode_graph_node(dynamic raw);
|
||||
|
||||
@protected
|
||||
HubDto dco_decode_hub_dto(dynamic raw);
|
||||
|
||||
@protected
|
||||
HubPreviewDto dco_decode_hub_preview_dto(dynamic raw);
|
||||
|
||||
@protected
|
||||
HubsDto dco_decode_hubs_dto(dynamic raw);
|
||||
|
||||
@protected
|
||||
int dco_decode_i_32(dynamic raw);
|
||||
|
||||
@@ -126,6 +135,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
LayoutFrame dco_decode_layout_frame(dynamic raw);
|
||||
|
||||
@protected
|
||||
LegacyCandidate dco_decode_legacy_candidate(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<String> dco_decode_list_String(dynamic raw);
|
||||
|
||||
@@ -144,6 +156,15 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
List<GraphNode> dco_decode_list_graph_node(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<HubDto> dco_decode_list_hub_dto(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<LegacyCandidate> dco_decode_list_legacy_candidate(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<NamespaceEntry> dco_decode_list_namespace_entry(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<PageBrief> dco_decode_list_page_brief(dynamic raw);
|
||||
|
||||
@@ -174,12 +195,18 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
List<RelatedDto> dco_decode_list_related_dto(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<TagDto> dco_decode_list_tag_dto(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<TimelineDayDto> dco_decode_list_timeline_day_dto(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<TitleHit> dco_decode_list_title_hit(dynamic raw);
|
||||
|
||||
@protected
|
||||
NamespaceEntry dco_decode_namespace_entry(dynamic raw);
|
||||
|
||||
@protected
|
||||
String? dco_decode_opt_String(dynamic raw);
|
||||
|
||||
@@ -204,6 +231,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
PageDto dco_decode_page_dto(dynamic raw);
|
||||
|
||||
@protected
|
||||
PageStructure dco_decode_page_structure(dynamic raw);
|
||||
|
||||
@protected
|
||||
Place dco_decode_place(dynamic raw);
|
||||
|
||||
@@ -216,6 +246,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
RelatedDto dco_decode_related_dto(dynamic raw);
|
||||
|
||||
@protected
|
||||
TagDto dco_decode_tag_dto(dynamic raw);
|
||||
|
||||
@protected
|
||||
TimelineDayDto dco_decode_timeline_day_dto(dynamic raw);
|
||||
|
||||
@@ -326,6 +359,15 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
GraphNode sse_decode_graph_node(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
HubDto sse_decode_hub_dto(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
HubPreviewDto sse_decode_hub_preview_dto(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
HubsDto sse_decode_hubs_dto(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
int sse_decode_i_32(SseDeserializer deserializer);
|
||||
|
||||
@@ -335,6 +377,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
LayoutFrame sse_decode_layout_frame(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
LegacyCandidate sse_decode_legacy_candidate(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
List<String> sse_decode_list_String(SseDeserializer deserializer);
|
||||
|
||||
@@ -355,6 +400,19 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
List<GraphNode> sse_decode_list_graph_node(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
List<HubDto> sse_decode_list_hub_dto(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
List<LegacyCandidate> sse_decode_list_legacy_candidate(
|
||||
SseDeserializer deserializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
List<NamespaceEntry> sse_decode_list_namespace_entry(
|
||||
SseDeserializer deserializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
List<PageBrief> sse_decode_list_page_brief(SseDeserializer deserializer);
|
||||
|
||||
@@ -385,6 +443,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
List<RelatedDto> sse_decode_list_related_dto(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
List<TagDto> sse_decode_list_tag_dto(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
List<TimelineDayDto> sse_decode_list_timeline_day_dto(
|
||||
SseDeserializer deserializer,
|
||||
@@ -393,6 +454,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
List<TitleHit> sse_decode_list_title_hit(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
NamespaceEntry sse_decode_namespace_entry(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
String? sse_decode_opt_String(SseDeserializer deserializer);
|
||||
|
||||
@@ -421,6 +485,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
PageDto sse_decode_page_dto(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
PageStructure sse_decode_page_structure(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
Place sse_decode_place(SseDeserializer deserializer);
|
||||
|
||||
@@ -435,6 +502,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
RelatedDto sse_decode_related_dto(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
TagDto sse_decode_tag_dto(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
TimelineDayDto sse_decode_timeline_day_dto(SseDeserializer deserializer);
|
||||
|
||||
@@ -558,6 +628,15 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
void sse_encode_graph_node(GraphNode self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_hub_dto(HubDto self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_hub_preview_dto(HubPreviewDto self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_hubs_dto(HubsDto self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_i_32(int self, SseSerializer serializer);
|
||||
|
||||
@@ -567,6 +646,12 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
void sse_encode_layout_frame(LayoutFrame self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_legacy_candidate(
|
||||
LegacyCandidate self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_String(List<String> self, SseSerializer serializer);
|
||||
|
||||
@@ -591,6 +676,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_hub_dto(List<HubDto> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_legacy_candidate(
|
||||
List<LegacyCandidate> self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_namespace_entry(
|
||||
List<NamespaceEntry> self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_page_brief(
|
||||
List<PageBrief> self,
|
||||
@@ -642,6 +742,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_tag_dto(List<TagDto> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_timeline_day_dto(
|
||||
List<TimelineDayDto> self,
|
||||
@@ -651,6 +754,12 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
void sse_encode_list_title_hit(List<TitleHit> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_namespace_entry(
|
||||
NamespaceEntry self,
|
||||
SseSerializer serializer,
|
||||
);
|
||||
|
||||
@protected
|
||||
void sse_encode_opt_String(String? self, SseSerializer serializer);
|
||||
|
||||
@@ -684,6 +793,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
void sse_encode_page_dto(PageDto self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_page_structure(PageStructure self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_place(Place self, SseSerializer serializer);
|
||||
|
||||
@@ -699,6 +811,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
@protected
|
||||
void sse_encode_related_dto(RelatedDto self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_tag_dto(TagDto self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_timeline_day_dto(
|
||||
TimelineDayDto self,
|
||||
|
||||
Reference in new issue
Block a user