pub struct EditorUploadCredential {
pub index: i32,
pub object_key: String,
pub presigned_url: String,
pub bucket: String,
pub image_url: String,
}Expand description
单图上传凭证(响应元素)
Fields§
§index: i32页序号(与请求对应)
object_key: String图片 OSS 对象键(注册页面时回传)
presigned_url: String预签名 PUT URL(前端直传图片字节)
bucket: String图片 OSS 桶名
image_url: String上传后图片访问 URL(CDN / 直链)
Trait Implementations§
Source§impl Clone for EditorUploadCredential
impl Clone for EditorUploadCredential
Source§fn clone(&self) -> EditorUploadCredential
fn clone(&self) -> EditorUploadCredential
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 EditorUploadCredential
impl Debug for EditorUploadCredential
Source§impl<'de> Deserialize<'de> for EditorUploadCredential
impl<'de> Deserialize<'de> for EditorUploadCredential
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EditorUploadCredential
impl RefUnwindSafe for EditorUploadCredential
impl Send for EditorUploadCredential
impl Sync for EditorUploadCredential
impl Unpin for EditorUploadCredential
impl UnsafeUnpin for EditorUploadCredential
impl UnwindSafe for EditorUploadCredential
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,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request