pub struct RenderedFile {
pub display_type: DisplayType,
pub filename: String,
pub sha: String,
pub mime: String,
pub name: Option<String>,
pub description: Option<String>,
pub url: String,
}Fields§
§display_type: DisplayType§filename: String§sha: String§mime: String§name: Option<String>§description: Option<String>§url: StringImplementations§
Source§impl RenderedFile
impl RenderedFile
pub fn from_file(file: File, field_config: &FieldConfig) -> Self
Trait Implementations§
Source§impl Clone for RenderedFile
impl Clone for RenderedFile
Source§fn clone(&self) -> RenderedFile
fn clone(&self) -> RenderedFile
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 RenderedFile
impl Debug for RenderedFile
Source§impl<'de> Deserialize<'de> for RenderedFile
impl<'de> Deserialize<'de> for RenderedFile
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 Hash for RenderedFile
impl Hash for RenderedFile
Source§impl ObjectView for RenderedFile
impl ObjectView for RenderedFile
Source§fn keys<'liquid_derive_k>(
&'liquid_derive_k self,
) -> Box<dyn Iterator<Item = KStringCow<'liquid_derive_k>> + 'liquid_derive_k>
fn keys<'liquid_derive_k>( &'liquid_derive_k self, ) -> Box<dyn Iterator<Item = KStringCow<'liquid_derive_k>> + 'liquid_derive_k>
Keys available for lookup.
Source§fn values<'liquid_derive_k>(
&'liquid_derive_k self,
) -> Box<dyn Iterator<Item = &'liquid_derive_k dyn ValueView> + 'liquid_derive_k>
fn values<'liquid_derive_k>( &'liquid_derive_k self, ) -> Box<dyn Iterator<Item = &'liquid_derive_k dyn ValueView> + 'liquid_derive_k>
Keys available for lookup.
Source§fn iter<'liquid_derive_k>(
&'liquid_derive_k self,
) -> Box<dyn Iterator<Item = (KStringCow<'liquid_derive_k>, &'liquid_derive_k dyn ValueView)> + 'liquid_derive_k>
fn iter<'liquid_derive_k>( &'liquid_derive_k self, ) -> Box<dyn Iterator<Item = (KStringCow<'liquid_derive_k>, &'liquid_derive_k dyn ValueView)> + 'liquid_derive_k>
Returns an iterator .
Source§fn contains_key(&self, index: &str) -> bool
fn contains_key(&self, index: &str) -> bool
Access a contained
BoxedValue.Source§impl PartialEq for RenderedFile
impl PartialEq for RenderedFile
Source§impl PartialOrd for RenderedFile
impl PartialOrd for RenderedFile
Source§impl Serialize for RenderedFile
impl Serialize for RenderedFile
impl StructuralPartialEq for RenderedFile
Source§impl ValueView for RenderedFile
impl ValueView for RenderedFile
Source§fn render(&self) -> DisplayCow<'_>
fn render(&self) -> DisplayCow<'_>
A
Display for a BoxedValue rendered for the user.Source§fn source(&self) -> DisplayCow<'_>
fn source(&self) -> DisplayCow<'_>
A
Display for a Value as source code.Source§fn query_state(&self, state: State) -> bool
fn query_state(&self, state: State) -> bool
Query the value’s state
Source§fn to_kstr(&self) -> KStringCow<'_>
fn to_kstr(&self) -> KStringCow<'_>
Interpret as a string.
Source§fn as_object(&self) -> Option<&dyn ObjectView>
fn as_object(&self) -> Option<&dyn ObjectView>
Extracts the object value if it is a object.
Auto Trait Implementations§
impl Freeze for RenderedFile
impl RefUnwindSafe for RenderedFile
impl Send for RenderedFile
impl Sync for RenderedFile
impl Unpin for RenderedFile
impl UnsafeUnpin for RenderedFile
impl UnwindSafe for RenderedFile
Blanket Implementations§
impl<T> Any for Twhere
T: Any,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
impl<T> CloneAnySend for T
impl<T> CloneAnySendSync for T
impl<T> CloneAnySync for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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