pub struct GetObjectUrl { /* private fields */ }Expand description
Get the object’s URL
Private objects can obtain a signed URL to download directly
See the Alibaba Cloud documentation for details
Implementations§
Source§impl GetObjectUrl
impl GetObjectUrl
Sourcepub fn set_source_ip(self, source_ip: IpAddr, subnet_mask: u8) -> Self
pub fn set_source_ip(self, source_ip: IpAddr, subnet_mask: u8) -> Self
Set IP information
To allow a single IP, set subnet_mask to 32
Sourcepub fn set_vpc_id(self, vpc_id: impl ToString) -> Self
pub fn set_vpc_id(self, vpc_id: impl ToString) -> Self
Set VPC information
Sourcepub fn forward_allow(self) -> Self
pub fn forward_allow(self) -> Self
Allow request forwarding
Disabled by default
Sourcepub fn set_response_mime(
self,
mime: impl ToString,
charset: Option<impl ToString>,
) -> Self
pub fn set_response_mime( self, mime: impl ToString, charset: Option<impl ToString>, ) -> Self
Set the response content-type
Sourcepub fn set_response_cache_control(self, cache_control: CacheControl) -> Self
pub fn set_response_cache_control(self, cache_control: CacheControl) -> Self
Set the response cache-control
Sourcepub fn set_response_content_disposition(
self,
content_disposition: ContentDisposition,
) -> Self
pub fn set_response_content_disposition( self, content_disposition: ContentDisposition, ) -> Self
Set the response content-disposition
Sourcepub fn set_custom_domain(
self,
custom_domain: impl ToString,
enable_https: bool,
) -> Self
pub fn set_custom_domain( self, custom_domain: impl ToString, enable_https: bool, ) -> Self
Set a custom domain
Sourcepub fn url(self, expires: OffsetDateTime) -> String
pub fn url(self, expires: OffsetDateTime) -> String
Generate the URL
Auto Trait Implementations§
impl Freeze for GetObjectUrl
impl !RefUnwindSafe for GetObjectUrl
impl Send for GetObjectUrl
impl Sync for GetObjectUrl
impl Unpin for GetObjectUrl
impl !UnwindSafe for GetObjectUrl
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