pub(crate) struct CreateInquiryRequest {
pub(crate) subject: String,
pub(crate) body: String,
}Expand description
POST /inquiries のリクエストボディ
新規お問い合わせの作成に必要なフィールドを定義します。
リクエストボディは JSON 形式で、subject と body フィールドが必須です。
§使用例
{
"subject": "お問い合わせの件名",
"body": "お問い合わせの詳細内容"
}Fields§
§subject: Stringお問い合わせの件名。空文字列も許容されるが、実際の運用では1文字以上が推奨される。
body: Stringお問い合わせの本文。空文字列も許容されるが、実際の運用では1文字以上が推奨される。
Trait Implementations§
Source§impl Debug for CreateInquiryRequest
impl Debug for CreateInquiryRequest
Source§impl<'de> Deserialize<'de> for CreateInquiryRequest
impl<'de> Deserialize<'de> for CreateInquiryRequest
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 CreateInquiryRequest
impl RefUnwindSafe for CreateInquiryRequest
impl Send for CreateInquiryRequest
impl Sync for CreateInquiryRequest
impl Unpin for CreateInquiryRequest
impl UnsafeUnpin for CreateInquiryRequest
impl UnwindSafe for CreateInquiryRequest
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
§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 moreCreates a shared type from an unshared type.