pub struct ScopedMediaIds {
pub slide: HashMap<String, MediaId>,
pub layout: HashMap<String, MediaId>,
pub master: HashMap<String, MediaId>,
pub media_content_types: HashMap<MediaId, String>,
}Expand description
Content-addressed media identifiers kept separate by relationship scope.
Fields§
§slide: HashMap<String, MediaId>§layout: HashMap<String, MediaId>§master: HashMap<String, MediaId>§media_content_types: HashMap<MediaId, String>Package content type for each content-addressed media item.
Implementations§
Source§impl ScopedMediaIds
impl ScopedMediaIds
Sourcepub fn get(
&self,
source: FlattenedSource,
relationship_id: &str,
) -> Option<MediaId>
pub fn get( &self, source: FlattenedSource, relationship_id: &str, ) -> Option<MediaId>
Look up an embedded relationship only in its producing part’s scope.
Sourcepub fn content_type(
&self,
source: FlattenedSource,
relationship_id: &str,
) -> Option<&str>
pub fn content_type( &self, source: FlattenedSource, relationship_id: &str, ) -> Option<&str>
Return the package content type for a relationship-resolved media item.
Trait Implementations§
Source§impl Clone for ScopedMediaIds
impl Clone for ScopedMediaIds
Source§fn clone(&self) -> ScopedMediaIds
fn clone(&self) -> ScopedMediaIds
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScopedMediaIds
impl Debug for ScopedMediaIds
Source§impl Default for ScopedMediaIds
impl Default for ScopedMediaIds
Source§fn default() -> ScopedMediaIds
fn default() -> ScopedMediaIds
Returns the “default value” for a type. Read more
impl Eq for ScopedMediaIds
Source§impl PartialEq for ScopedMediaIds
impl PartialEq for ScopedMediaIds
impl StructuralPartialEq for ScopedMediaIds
Auto Trait Implementations§
impl Freeze for ScopedMediaIds
impl RefUnwindSafe for ScopedMediaIds
impl Send for ScopedMediaIds
impl Sync for ScopedMediaIds
impl Unpin for ScopedMediaIds
impl UnsafeUnpin for ScopedMediaIds
impl UnwindSafe for ScopedMediaIds
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