Struct bundlrs::db::PasteMetadata
source · pub struct PasteMetadata {
pub owner: String,
pub private_source: String,
pub permissions_list: PastePermissions,
pub title: Option<String>,
pub description: Option<String>,
pub favicon: Option<String>,
pub embed_color: Option<String>,
pub view_password: Option<String>,
pub page_template: Option<String>,
}
Fields§
§owner: String
§private_source: String
§permissions_list: PastePermissions
§title: Option<String>
§description: Option<String>
§favicon: Option<String>
§embed_color: Option<String>
§view_password: Option<String>
§page_template: Option<String>
Trait Implementations§
source§impl Clone for PasteMetadata
impl Clone for PasteMetadata
source§fn clone(&self) -> PasteMetadata
fn clone(&self) -> PasteMetadata
Returns a copy 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 PasteMetadata
impl Debug for PasteMetadata
source§impl Default for PasteMetadata
impl Default for PasteMetadata
source§fn default() -> PasteMetadata
fn default() -> PasteMetadata
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PasteMetadata
impl<'de> Deserialize<'de> for PasteMetadata
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 PasteMetadata
impl PartialEq for PasteMetadata
source§fn eq(&self, other: &PasteMetadata) -> bool
fn eq(&self, other: &PasteMetadata) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PasteMetadata
impl Serialize for PasteMetadata
impl StructuralPartialEq for PasteMetadata
Auto Trait Implementations§
impl RefUnwindSafe for PasteMetadata
impl Send for PasteMetadata
impl Sync for PasteMetadata
impl Unpin for PasteMetadata
impl UnwindSafe for PasteMetadata
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