pub struct CreateLinkRequest {
pub code: Option<String>,
pub label: Option<String>,
}Fields§
§code: Option<String>Code is an optional vanity code; it must be free across the whole directory, and omitting it mints a random one. Body-only.
label: Option<String>Label is cosmetic — trimmed, stripped of control characters, capped — and never part of a code. Body-only: the URL cannot supply it.
Implementations§
Source§impl CreateLinkRequest
impl CreateLinkRequest
pub fn new() -> CreateLinkRequest
Trait Implementations§
Source§impl Clone for CreateLinkRequest
impl Clone for CreateLinkRequest
Source§fn clone(&self) -> CreateLinkRequest
fn clone(&self) -> CreateLinkRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateLinkRequest
impl Debug for CreateLinkRequest
Source§impl Default for CreateLinkRequest
impl Default for CreateLinkRequest
Source§fn default() -> CreateLinkRequest
fn default() -> CreateLinkRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateLinkRequest
impl<'de> Deserialize<'de> for CreateLinkRequest
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 CreateLinkRequest
impl PartialEq for CreateLinkRequest
Source§impl Serialize for CreateLinkRequest
impl Serialize for CreateLinkRequest
impl StructuralPartialEq for CreateLinkRequest
Auto Trait Implementations§
impl Freeze for CreateLinkRequest
impl RefUnwindSafe for CreateLinkRequest
impl Send for CreateLinkRequest
impl Sync for CreateLinkRequest
impl Unpin for CreateLinkRequest
impl UnsafeUnpin for CreateLinkRequest
impl UnwindSafe for CreateLinkRequest
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