pub struct GistsCreateRequest {
pub description: Option<String>,
pub files: HashMap<String, GistsCreateRequestFilesValue>,
pub public: Option<Box<GistsCreateRequestPublic>>,
}
Fields§
§description: Option<String>
Description of the gist
files: HashMap<String, GistsCreateRequestFilesValue>
Names and content for the files that make up the gist
public: Option<Box<GistsCreateRequestPublic>>
Implementations§
Source§impl GistsCreateRequest
impl GistsCreateRequest
pub fn new( files: HashMap<String, GistsCreateRequestFilesValue>, ) -> GistsCreateRequest
Trait Implementations§
Source§impl Clone for GistsCreateRequest
impl Clone for GistsCreateRequest
Source§fn clone(&self) -> GistsCreateRequest
fn clone(&self) -> GistsCreateRequest
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 GistsCreateRequest
impl Debug for GistsCreateRequest
Source§impl Default for GistsCreateRequest
impl Default for GistsCreateRequest
Source§fn default() -> GistsCreateRequest
fn default() -> GistsCreateRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GistsCreateRequest
impl<'de> Deserialize<'de> for GistsCreateRequest
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 GistsCreateRequest
impl PartialEq for GistsCreateRequest
Source§impl Serialize for GistsCreateRequest
impl Serialize for GistsCreateRequest
impl StructuralPartialEq for GistsCreateRequest
Auto Trait Implementations§
impl Freeze for GistsCreateRequest
impl RefUnwindSafe for GistsCreateRequest
impl Send for GistsCreateRequest
impl Sync for GistsCreateRequest
impl Unpin for GistsCreateRequest
impl UnwindSafe for GistsCreateRequest
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