Skip to main content

Format

Struct Format 

Source
pub struct Format<N, D, G> { /* private fields */ }
Expand description

Original covered roles, before scalar/URI/object-metadata checks.

Implementations§

Source§

impl<N: Copy, D: Copy, G: Copy> Format<N, D, G>

Source

pub fn snapshot(&self) -> Snapshot<D, G>

Original XML identity and generation.

Source

pub fn signature(&self) -> N

Signature whose whole SignedProperties coverage protects these nodes.

Source

pub fn node(&self) -> N

Original DataObjectFormat; its unqualified ObjectReference attribute still needs the XML owner’s authenticated-reference resolver.

Source

pub fn description(&self) -> Option<N>

Original optional Description string element.

Source

pub fn identifier(&self) -> Option<N>

Original optional ObjectIdentifier, before its own content validation.

Source

pub fn mime(&self) -> N

Original baseline-mandatory MimeType, before MIME/scalar agreement checks.

Source

pub fn encoding(&self) -> Option<N>

Original optional Encoding, before XML-owned anyURI validation.

Trait Implementations§

Source§

impl<N: Debug, D: Debug, G: Debug> Debug for Format<N, D, G>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<N, D, G> Forget for Format<N, D, G>

§

impl<N, D, G> Freeze for Format<N, D, G>
where Snapshot<D, G>: Freeze, N: Freeze, Option<N>: Freeze,

§

impl<N, D, G> RefUnwindSafe for Format<N, D, G>

§

impl<N, D, G> Send for Format<N, D, G>
where Snapshot<D, G>: Send, N: Send, Option<N>: Send,

§

impl<N, D, G> Sync for Format<N, D, G>
where Snapshot<D, G>: Sync, N: Sync, Option<N>: Sync,

§

impl<N, D, G> Unpin for Format<N, D, G>
where Snapshot<D, G>: Unpin, N: Unpin, Option<N>: Unpin,

§

impl<N, D, G> UnsafeUnpin for Format<N, D, G>

§

impl<N, D, G> UnwindSafe for Format<N, D, G>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.