pub struct PackFeaturedDocRequestItem {
pub is_pinned: Option<bool>,
pub url: String,
}
Expand description
Item representing a featured doc in the update Pack featured docs request.
JSON schema
{
"description": "Item representing a featured doc in the update Pack
featured docs request.",
"type": "object",
"required": [
"url"
],
"properties": {
"isPinned": {
"description": "Whether or not the current doc should be pinned.",
"type": "boolean"
},
"url": {
"description": "A URL to a doc.",
"type": "string"
}
},
"additionalProperties": false,
"x-schema-name": "PackFeaturedDocRequestItem"
}
Fields§
§is_pinned: Option<bool>
Whether or not the current doc should be pinned.
url: String
A URL to a doc.
Trait Implementations§
Source§impl Clone for PackFeaturedDocRequestItem
impl Clone for PackFeaturedDocRequestItem
Source§fn clone(&self) -> PackFeaturedDocRequestItem
fn clone(&self) -> PackFeaturedDocRequestItem
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 PackFeaturedDocRequestItem
impl Debug for PackFeaturedDocRequestItem
Source§impl<'de> Deserialize<'de> for PackFeaturedDocRequestItem
impl<'de> Deserialize<'de> for PackFeaturedDocRequestItem
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<&PackFeaturedDocRequestItem> for PackFeaturedDocRequestItem
impl From<&PackFeaturedDocRequestItem> for PackFeaturedDocRequestItem
Source§fn from(value: &PackFeaturedDocRequestItem) -> Self
fn from(value: &PackFeaturedDocRequestItem) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PackFeaturedDocRequestItem
impl RefUnwindSafe for PackFeaturedDocRequestItem
impl Send for PackFeaturedDocRequestItem
impl Sync for PackFeaturedDocRequestItem
impl Unpin for PackFeaturedDocRequestItem
impl UnwindSafe for PackFeaturedDocRequestItem
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