기능항목 유형
Document — 문서
레거시 미러 필드가 포함된 첨부 파일(단일 또는 다중).
문서 유형(Document, 판별식 18) — 문서 범주. 레거시 미러 필드가 포함된 첨부 파일(단일 또는 다중).
특별
← 유형 색상 · 대상: 문서 · 동일자: 18
필드 스키마(EntryData)
| 필드 | 녹 유형 | 선택사항 | 보호됨 | UI 라벨 |
|---|---|---|---|---|
filename | String | 아니 | 아니 | 파일 이름 |
mime_type | String | 아니 | 아니 | MIME 유형 |
content | Vec<u8> | 아니 | 예 | 파일 |
notes | Option<String> | 예 | 아니 | 메모 |
files | Vec<DocumentAttachment> | 아니 | 아니 | 첨부파일 |
folders | Vec<DocumentFolder> | 아니 | 아니 | 폴더 |
기미
보호됨 필드(UI에서 마스크됨, EntryType::is_protected_field): content.
첨부 파일
첨부파일
문서 형식은 attachment_store_mut()을 통해 DocumentInner.files / folders(Entry.attachments__)에 첨부 파일을 생성합니다. 레거시 필드 filename, mime_type, content은 기본 페이로드로 유지됩니다. 다중 파일 첨부 파일은 DocumentAttachment / DocumentFolder 구조를 공유합니다.
문서 구조
DocumentInner(기본 페이로드): filename, mime_type, content(보호됨), notes 및 다중 파일 첨부용 files / folders. document_service.rs의 attachment_store_mut()을 통합하고 있습니다.
앱에서
문서 항목 작성: Vault → + → 문서 입력 → 기록 기록 → 첨부 파일 추가(선택 사항, 모든 유형) → 저장. 연구원: 배치만 필요합니다(validation_service.rs).