#[non_exhaustive]pub struct SourceInfo {
pub format: Format,
pub version: String,
pub application: Option<String>,
pub codepage: Option<String>,
}Expand description
Origin of a Document.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.format: FormatFile format family.
version: StringFormat version as written in the file, e.g. "AC1032", "V8", "V7".
application: Option<String>Producing application if recorded, e.g. "MicroStation v8.11.9.578".
codepage: Option<String>Code page used for 8-bit strings, e.g. "windows-1254".
Implementations§
Source§impl SourceInfo
impl SourceInfo
Source§impl SourceInfo
impl SourceInfo
Sourcepub fn with_application(self, value: impl Into<String>) -> Self
pub fn with_application(self, value: impl Into<String>) -> Self
Sets Self::application to Some(value).
Sourcepub fn with_codepage(self, value: impl Into<String>) -> Self
pub fn with_codepage(self, value: impl Into<String>) -> Self
Sets Self::codepage to Some(value).
Trait Implementations§
Source§impl Clone for SourceInfo
impl Clone for SourceInfo
Source§impl Debug for SourceInfo
impl Debug for SourceInfo
Source§impl Default for SourceInfo
impl Default for SourceInfo
Source§impl<'de> Deserialize<'de> for SourceInfo
impl<'de> Deserialize<'de> for SourceInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SourceInfo
impl PartialEq for SourceInfo
Source§impl Serialize for SourceInfo
impl Serialize for SourceInfo
impl StructuralPartialEq for SourceInfo
Auto Trait Implementations§
impl Forget for SourceInfo
impl Freeze for SourceInfo
impl Move for SourceInfo
impl RefUnwindSafe for SourceInfo
impl Send for SourceInfo
impl Sync for SourceInfo
impl Unpin for SourceInfo
impl UnsafeUnpin for SourceInfo
impl UnwindSafe for SourceInfo
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