pub struct ResourceResponsePart {
pub uri: Uri,
pub size_hint: Option<i64>,
pub content_type: Option<String>,
pub nonce: Option<String>,
}Expand description
A content part that’s 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 ResourceResponsePart
impl Clone for ResourceResponsePart
Source§fn clone(&self) -> ResourceResponsePart
fn clone(&self) -> ResourceResponsePart
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 ResourceResponsePart
impl Debug for ResourceResponsePart
Source§impl<'de> Deserialize<'de> for ResourceResponsePart
impl<'de> Deserialize<'de> for ResourceResponsePart
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 ResourceResponsePart
impl PartialEq for ResourceResponsePart
Source§fn eq(&self, other: &ResourceResponsePart) -> bool
fn eq(&self, other: &ResourceResponsePart) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResourceResponsePart
impl Serialize for ResourceResponsePart
impl StructuralPartialEq for ResourceResponsePart
Auto Trait Implementations§
impl Freeze for ResourceResponsePart
impl RefUnwindSafe for ResourceResponsePart
impl Send for ResourceResponsePart
impl Sync for ResourceResponsePart
impl Unpin for ResourceResponsePart
impl UnsafeUnpin for ResourceResponsePart
impl UnwindSafe for ResourceResponsePart
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