pub struct LetterPaths { /* private fields */ }Expand description
Relative on-disk paths for a single clinical letter.
This represents where a letter lives, not what a letter is.
The paths are relative to the patient repository root and must be resolved by repository-level code before filesystem access.
The directory name is derived from a TimestampId, which provides:
- global uniqueness,
- per-patient chronological ordering,
- human-readable audit semantics.
Implementations§
Source§impl LetterPaths
impl LetterPaths
Sourcepub fn new(letter_id: &TimestampId) -> Self
pub fn new(letter_id: &TimestampId) -> Self
Creates a new relative path set for a letter with the given timestamp ID.
The resulting paths are relative and must be joined to a patient repository root before filesystem access.
§Arguments
letter_id- The timestamp identifier for this letter
Sourcepub fn composition_yaml(&self) -> PathBuf
pub fn composition_yaml(&self) -> PathBuf
Returns the relative path to composition.yaml.
Sourcepub fn attachments_dir(&self) -> PathBuf
pub fn attachments_dir(&self) -> PathBuf
Returns the relative path to the attachments directory.
Sourcepub fn attachment(&self, filename: &str) -> PathBuf
pub fn attachment(&self, filename: &str) -> PathBuf
Returns the relative path to a specific attachment file.
This does not validate filenames and performs no I/O.
§Arguments
filename- The name of the attachment file
Trait Implementations§
Source§impl Clone for LetterPaths
impl Clone for LetterPaths
Source§fn clone(&self) -> LetterPaths
fn clone(&self) -> LetterPaths
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LetterPaths
impl RefUnwindSafe for LetterPaths
impl Send for LetterPaths
impl Sync for LetterPaths
impl Unpin for LetterPaths
impl UnwindSafe for LetterPaths
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request