pub struct RemoteImageSource {
pub uri: String,
pub method: RemoteMethod,
pub headers: BTreeMap<String, String>,
pub format: Option<ImageFormat>,
pub body: Option<Vec<u8>>,
pub credentials: Option<RemoteCredentials>,
}Fields§
§uri: String§method: RemoteMethod§headers: BTreeMap<String, String>§format: Option<ImageFormat>§body: Option<Vec<u8>>§credentials: Option<RemoteCredentials>Implementations§
Source§impl RemoteImageSource
impl RemoteImageSource
pub fn new(uri: impl Into<String>) -> Self
pub fn with_method(self, method: RemoteMethod) -> Self
pub fn with_header( self, name: impl Into<String>, value: impl Into<String>, ) -> Self
pub fn with_body(self, body: impl Into<Vec<u8>>) -> Self
pub fn with_format(self, format: ImageFormat) -> Self
pub fn with_credentials(self, credentials: RemoteCredentials) -> Self
Trait Implementations§
Source§impl Clone for RemoteImageSource
impl Clone for RemoteImageSource
Source§fn clone(&self) -> RemoteImageSource
fn clone(&self) -> RemoteImageSource
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 RemoteImageSource
impl Debug for RemoteImageSource
Source§impl From<RemoteImageSource> for ImageSource
impl From<RemoteImageSource> for ImageSource
Source§fn from(value: RemoteImageSource) -> Self
fn from(value: RemoteImageSource) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RemoteImageSource
impl PartialEq for RemoteImageSource
Source§fn eq(&self, other: &RemoteImageSource) -> bool
fn eq(&self, other: &RemoteImageSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RemoteImageSource
impl StructuralPartialEq for RemoteImageSource
Auto Trait Implementations§
impl Freeze for RemoteImageSource
impl RefUnwindSafe for RemoteImageSource
impl Send for RemoteImageSource
impl Sync for RemoteImageSource
impl Unpin for RemoteImageSource
impl UnsafeUnpin for RemoteImageSource
impl UnwindSafe for RemoteImageSource
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