pub struct DraftResponse {
pub draft: Box<Draft>,
pub provider: String,
}Fields§
§draft: Box<Draft>§provider: StringImplementations§
Source§impl DraftResponse
impl DraftResponse
pub fn new(draft: Draft, provider: String) -> DraftResponse
Trait Implementations§
Source§impl Clone for DraftResponse
impl Clone for DraftResponse
Source§fn clone(&self) -> DraftResponse
fn clone(&self) -> DraftResponse
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 DraftResponse
impl Debug for DraftResponse
Source§impl Default for DraftResponse
impl Default for DraftResponse
Source§fn default() -> DraftResponse
fn default() -> DraftResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DraftResponse
impl<'de> Deserialize<'de> for DraftResponse
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 DraftResponse
impl PartialEq for DraftResponse
Source§fn eq(&self, other: &DraftResponse) -> bool
fn eq(&self, other: &DraftResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DraftResponse
impl Serialize for DraftResponse
impl StructuralPartialEq for DraftResponse
Auto Trait Implementations§
impl Freeze for DraftResponse
impl RefUnwindSafe for DraftResponse
impl Send for DraftResponse
impl Sync for DraftResponse
impl Unpin for DraftResponse
impl UnsafeUnpin for DraftResponse
impl UnwindSafe for DraftResponse
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