pub struct JigResponse {
pub id: JigId,
pub published_at: Option<DateTime<Utc>>,
pub creator_id: Option<UserId>,
pub author_id: Option<UserId>,
pub author_name: Option<String>,
pub likes: i64,
pub plays: i64,
pub live_up_to_date: bool,
pub jig_data: JigData,
pub is_liked: bool,
pub admin_data: JigAdminData,
}Expand description
The response returned when a request for GETing a jig is successful.
Fields§
§id: JigIdThe ID of the JIG.
published_at: Option<DateTime<Utc>>When (if at all) the JIG has published a draft to live.
creator_id: Option<UserId>The ID of the JIG’s original creator (None if unknown).
The current author
The author’s name, as “{given_name} {family_name}”.
likes: i64Number of likes on Jig
plays: i64Number of plays Jig
live_up_to_date: boolLive is current to Draft
jig_data: JigDataThe data of the requested JIG.
is_liked: boolLiked by current user.
admin_data: JigAdminDataAdmin data for Jig
Trait Implementations§
Source§impl Clone for JigResponse
impl Clone for JigResponse
Source§fn clone(&self) -> JigResponse
fn clone(&self) -> JigResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 JigResponse
impl Debug for JigResponse
Source§impl<'de> Deserialize<'de> for JigResponse
impl<'de> Deserialize<'de> for JigResponse
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
Source§impl From<JigResponse> for Asset
impl From<JigResponse> for Asset
Source§fn from(jig: JigResponse) -> Self
fn from(jig: JigResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JigResponse
impl RefUnwindSafe for JigResponse
impl Send for JigResponse
impl Sync for JigResponse
impl Unpin for JigResponse
impl UnwindSafe for JigResponse
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