Fall back to String for Comment::path when not using the full feature (#2941)

post-url-index
derivator 2023-06-07 15:38:46 +02:00 committed by GitHub
parent 24323e17b2
commit 9419dd7c05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,8 @@ pub struct Comment {
#[cfg_attr(feature = "full", ts(type = "string"))] #[cfg_attr(feature = "full", ts(type = "string"))]
/// The path / tree location of a comment, separated by dots, ending with the comment's id. Ex: 0.24.27 /// The path / tree location of a comment, separated by dots, ending with the comment's id. Ex: 0.24.27
pub path: Ltree, pub path: Ltree,
#[cfg(not(feature = "full"))]
pub path: String,
/// Whether the comment has been distinguished(speaking officially) by a mod. /// Whether the comment has been distinguished(speaking officially) by a mod.
pub distinguished: bool, pub distinguished: bool,
pub language_id: LanguageId, pub language_id: LanguageId,