pub struct LibraryItemData {
pub key: String,
pub name: String,
}
Expand description
LibraryItemData : An object representing the library item information in the payload of the LIBRARY_PUBLISH
event
Fields§
§key: String
Unique identifier for the library item
name: String
Name of the library item
Implementations§
Source§impl LibraryItemData
impl LibraryItemData
Sourcepub fn new(key: String, name: String) -> LibraryItemData
pub fn new(key: String, name: String) -> LibraryItemData
An object representing the library item information in the payload of the LIBRARY_PUBLISH
event
Trait Implementations§
Source§impl Clone for LibraryItemData
impl Clone for LibraryItemData
Source§fn clone(&self) -> LibraryItemData
fn clone(&self) -> LibraryItemData
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 LibraryItemData
impl Debug for LibraryItemData
Source§impl Default for LibraryItemData
impl Default for LibraryItemData
Source§fn default() -> LibraryItemData
fn default() -> LibraryItemData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LibraryItemData
impl<'de> Deserialize<'de> for LibraryItemData
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 PartialEq for LibraryItemData
impl PartialEq for LibraryItemData
Source§impl Serialize for LibraryItemData
impl Serialize for LibraryItemData
impl StructuralPartialEq for LibraryItemData
Auto Trait Implementations§
impl Freeze for LibraryItemData
impl RefUnwindSafe for LibraryItemData
impl Send for LibraryItemData
impl Sync for LibraryItemData
impl Unpin for LibraryItemData
impl UnwindSafe for LibraryItemData
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