pub struct CollectionUpdate {
pub client: Option<Client>,
pub alias: Option<String>,
pub title: Option<String>,
pub description: Option<String>,
pub style_sheet: Option<String>,
pub script: Option<String>,
pub visibility: Option<CollectionVisibility>,
pub pass: Option<String>,
pub mathjax: bool,
}Expand description
Struct describing a collection update
Fields§
§client: Option<Client>Client instance
alias: Option<String>Collection alias to update
title: Option<String>New title
description: Option<String>New description
style_sheet: Option<String>New style sheet
script: Option<String>New script (Write.as only)
visibility: Option<CollectionVisibility>New visibility level
pass: Option<String>New password (only CollectionVisibility::Password)
mathjax: boolWhether to enable Mathjax support
Implementations§
Source§impl CollectionUpdate
impl CollectionUpdate
Sourcepub async fn update(&self) -> Result<Collection, ApiError>
pub async fn update(&self) -> Result<Collection, ApiError>
Publish the update request to the server
Trait Implementations§
Source§impl Clone for CollectionUpdate
impl Clone for CollectionUpdate
Source§fn clone(&self) -> CollectionUpdate
fn clone(&self) -> CollectionUpdate
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 CollectionUpdate
impl Debug for CollectionUpdate
Source§impl<'de> Deserialize<'de> for CollectionUpdate
impl<'de> Deserialize<'de> for CollectionUpdate
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
Auto Trait Implementations§
impl Freeze for CollectionUpdate
impl RefUnwindSafe for CollectionUpdate
impl Send for CollectionUpdate
impl Sync for CollectionUpdate
impl Unpin for CollectionUpdate
impl UnwindSafe for CollectionUpdate
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