pub struct DerefOutput<T = Content> {
pub content: T,
pub content_metadata: Metadata,
pub metadata: Metadata,
}Fields§
§content: T§content_metadata: Metadata§metadata: MetadataImplementations§
Source§impl<T> DerefOutput<T>
impl<T> DerefOutput<T>
pub fn new( content: T, content_metadata: Metadata, metadata: Metadata, ) -> DerefOutput<T>
pub fn url(url: IriBuf) -> DerefOutput<T>
pub fn map<U>(self, f: impl FnOnce(T) -> U) -> DerefOutput<U>
pub fn cast<U>(self) -> DerefOutput<U>where
U: From<T>,
pub fn into_content(self) -> T
Source§impl DerefOutput<PrimaryContent>
impl DerefOutput<PrimaryContent>
pub fn null() -> DerefOutput<PrimaryContent>
Auto Trait Implementations§
impl<T> Freeze for DerefOutput<T>where
T: Freeze,
impl<T> RefUnwindSafe for DerefOutput<T>where
T: RefUnwindSafe,
impl<T> Send for DerefOutput<T>where
T: Send,
impl<T> Sync for DerefOutput<T>where
T: Sync,
impl<T> Unpin for DerefOutput<T>where
T: Unpin,
impl<T> UnwindSafe for DerefOutput<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
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, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T.