pub struct ContentRef {
pub uri: Uri,
pub size_hint: Option<i64>,
pub content_type: Option<String>,
pub nonce: Option<String>,
}Expand description
A reference to large content stored outside the state tree.
Fields§
§uri: UriContent URI
size_hint: Option<i64>Approximate size in bytes
content_type: Option<String>Content MIME type
nonce: Option<String>Content nonce
Trait Implementations§
Source§impl Clone for ContentRef
impl Clone for ContentRef
Source§fn clone(&self) -> ContentRef
fn clone(&self) -> ContentRef
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 ContentRef
impl Debug for ContentRef
Source§impl<'de> Deserialize<'de> for ContentRef
impl<'de> Deserialize<'de> for ContentRef
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 ContentRef
impl PartialEq for ContentRef
Source§fn eq(&self, other: &ContentRef) -> bool
fn eq(&self, other: &ContentRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContentRef
impl Serialize for ContentRef
impl StructuralPartialEq for ContentRef
Auto Trait Implementations§
impl Freeze for ContentRef
impl RefUnwindSafe for ContentRef
impl Send for ContentRef
impl Sync for ContentRef
impl Unpin for ContentRef
impl UnsafeUnpin for ContentRef
impl UnwindSafe for ContentRef
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