pub struct FileMetaTableBuilder { /* private fields */ }Expand description
Builder for FileMetaTable, mirroring dicom-object’s FileMetaTableBuilder fluent API.
Implementations§
Source§impl FileMetaTableBuilder
impl FileMetaTableBuilder
pub fn new() -> Self
pub fn information_version(self, v: [u8; 2]) -> Self
pub fn media_storage_sop_class_uid(self, v: impl Into<String>) -> Self
pub fn media_storage_sop_instance_uid(self, v: impl Into<String>) -> Self
pub fn transfer_syntax(self, v: impl Into<String>) -> Self
pub fn implementation_class_uid(self, v: impl Into<String>) -> Self
pub fn implementation_version_name(self, v: impl Into<String>) -> Self
pub fn source_application_entity_title(self, v: impl Into<String>) -> Self
pub fn sending_application_entity_title(self, v: impl Into<String>) -> Self
pub fn receiving_application_entity_title(self, v: impl Into<String>) -> Self
pub fn private_information_creator_uid(self, v: impl Into<String>) -> Self
pub fn private_information(self, v: impl Into<Vec<u8>>) -> Self
Sourcepub fn build(self) -> Result<FileMetaTable, WithMetaError>
pub fn build(self) -> Result<FileMetaTable, WithMetaError>
Build the table. Unset mandatory fields (media_storage_sop_class_uid,
media_storage_sop_instance_uid, implementation_class_uid) are left as empty
strings rather than erroring - matching dcmnorm’s existing tolerance for building
meta tables incrementally (e.g. the raw-dataset trial-parse fallback path, which only
knows the transfer syntax at first).
Trait Implementations§
Source§impl Clone for FileMetaTableBuilder
impl Clone for FileMetaTableBuilder
Source§impl Debug for FileMetaTableBuilder
impl Debug for FileMetaTableBuilder
Auto Trait Implementations§
impl Forget for FileMetaTableBuilder
impl Freeze for FileMetaTableBuilder
impl Move for FileMetaTableBuilder
impl RefUnwindSafe for FileMetaTableBuilder
impl Send for FileMetaTableBuilder
impl Sync for FileMetaTableBuilder
impl Unpin for FileMetaTableBuilder
impl UnsafeUnpin for FileMetaTableBuilder
impl UnwindSafe for FileMetaTableBuilder
Blanket Implementations§
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more