pub struct TicketCreateScheme {
pub category: String,
pub betreff: String,
pub description: String,
pub room: i16,
}Expand description
Payload for creating a new ticket.
Sent to /api/tickets/create. The backend automatically associates it with the
authenticated user and sets the creation timestamp. Converted to TicketResponse for the response.
§Fields
category: Ticket category/typebetreff: Subject line for the ticketdescription: Detailed problem descriptionroom: Room number where the issue is located
Fields§
§category: StringTicket category/type
betreff: StringSubject line for the ticket
description: StringDetailed problem description
room: i16Room number where the issue is located
Trait Implementations§
Source§impl Debug for TicketCreateScheme
impl Debug for TicketCreateScheme
Source§impl<'de> Deserialize<'de> for TicketCreateScheme
impl<'de> Deserialize<'de> for TicketCreateScheme
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 TicketCreateScheme
impl RefUnwindSafe for TicketCreateScheme
impl Send for TicketCreateScheme
impl Sync for TicketCreateScheme
impl Unpin for TicketCreateScheme
impl UnwindSafe for TicketCreateScheme
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 more