pub struct Ticket {
pub id: i32,
pub category: String,
pub betreff: String,
pub description: String,
pub room: i16,
pub status: String,
pub date: DateTime<Utc>,
pub user_id: i16,
pub user_first_name: String,
pub user_last_name: String,
}Expand description
Represents a complete ticket entity retrieved from the backend.
This struct holds all details of a ticket, including its metadata, content, and associated user information.
§Fields
id: The unique identifier of the ticket.category: The category of the ticket.betreff: The subject of the ticket.description: The detailed description of the ticket.room: The room number associated with the ticket.status: The current status of the ticket.date: The creation date and time of the ticket in UTC.user_id: The ID of the user who created the ticket.user_first_name: The first name of the user who created the ticket.user_last_name: The last name of the user who created the ticket.
Fields§
§id: i32§category: String§betreff: String§description: String§room: i16§status: String§date: DateTime<Utc>§user_id: i16§user_first_name: String§user_last_name: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for Ticket
impl<'de> Deserialize<'de> for Ticket
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
impl StructuralPartialEq for Ticket
Auto Trait Implementations§
impl Freeze for Ticket
impl RefUnwindSafe for Ticket
impl Send for Ticket
impl Sync for Ticket
impl Unpin for Ticket
impl UnwindSafe for Ticket
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> FromQuery for Twhere
T: DeserializeOwned,
impl<T> FromQuery for Twhere
T: DeserializeOwned,
§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>
§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.