pub struct OpPresign { /* private fields */ }Expand description
Args for presign operation.
The path must be normalized.
Implementations§
Source§impl OpPresign
impl OpPresign
Sourcepub fn new(op: impl Into<PresignOperation>, expire: Duration) -> Self
pub fn new(op: impl Into<PresignOperation>, expire: Duration) -> Self
Create a new OpPresign.
Sourcepub fn operation(&self) -> &PresignOperation
pub fn operation(&self) -> &PresignOperation
Get operation from op.
Sourcepub fn into_parts(self) -> (Duration, PresignOperation)
pub fn into_parts(self) -> (Duration, PresignOperation)
Consume OpPresign into (Duration, PresignOperation)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpPresign
impl RefUnwindSafe for OpPresign
impl Send for OpPresign
impl Sync for OpPresign
impl Unpin for OpPresign
impl UnwindSafe for OpPresign
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