pub struct PresignedPut {
pub url: String,
pub method: &'static str,
pub headers: Vec<(String, String)>,
}Expand description
A presigned upload: the URL to PUT to, the method, and the headers the
client must send exactly — the signature covers each signed header, so
a different value is refused by the store (issue #622).
Fields§
§url: StringThe https://… URL, query string and all. A bearer credential until
it expires: never log it.
method: &'static strAlways "PUT"; carried so a caller need not hard-code it.
headers: Vec<(String, String)>Headers the client must send with exactly these values (e.g.
Content-Type, Content-Length).
Trait Implementations§
Source§impl Clone for PresignedPut
impl Clone for PresignedPut
Source§impl Debug for PresignedPut
impl Debug for PresignedPut
impl Eq for PresignedPut
Source§impl PartialEq for PresignedPut
impl PartialEq for PresignedPut
impl StructuralPartialEq for PresignedPut
Auto Trait Implementations§
impl Freeze for PresignedPut
impl RefUnwindSafe for PresignedPut
impl Send for PresignedPut
impl Sync for PresignedPut
impl Unpin for PresignedPut
impl UnsafeUnpin for PresignedPut
impl UnwindSafe for PresignedPut
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.