pub enum RequestParams {
S3((String, Vec<String>)),
MockS3((String, Vec<String>)),
}
Variants§
S3((String, Vec<String>))
S3 bucket and keys.
MockS3((String, Vec<String>))
Mock S3 bucket and keys. This is used for testing purposes.
Implementations§
Source§impl RequestParams
impl RequestParams
Sourcepub fn as_s3_mut(&mut self) -> Option<&mut (String, Vec<String>)>
pub fn as_s3_mut(&mut self) -> Option<&mut (String, Vec<String>)>
Optionally returns mutable references to the inner fields if this is a RequestParams::S3
, otherwise None
Sourcepub fn as_s3(&self) -> Option<&(String, Vec<String>)>
pub fn as_s3(&self) -> Option<&(String, Vec<String>)>
Optionally returns references to the inner fields if this is a RequestParams::S3
, otherwise None
Sourcepub fn into_s3(self) -> Result<(String, Vec<String>), Self>
pub fn into_s3(self) -> Result<(String, Vec<String>), Self>
Returns the inner fields if this is a RequestParams::S3
, otherwise returns back the enum in the Err
case of the result
Sourcepub fn is_mock_s3(&self) -> bool
pub fn is_mock_s3(&self) -> bool
Returns true if this is a RequestParams::MockS3
, otherwise false
Sourcepub fn as_mock_s3_mut(&mut self) -> Option<&mut (String, Vec<String>)>
pub fn as_mock_s3_mut(&mut self) -> Option<&mut (String, Vec<String>)>
Optionally returns mutable references to the inner fields if this is a RequestParams::MockS3
, otherwise None
Trait Implementations§
Source§impl Clone for RequestParams
impl Clone for RequestParams
Source§fn clone(&self) -> RequestParams
fn clone(&self) -> RequestParams
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RequestParams
impl RefUnwindSafe for RequestParams
impl Send for RequestParams
impl Sync for RequestParams
impl Unpin for RequestParams
impl UnwindSafe for RequestParams
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