pub struct LicenseContent {Show 13 fields
pub name: String,
pub path: String,
pub sha: String,
pub size: i32,
pub url: String,
pub html_url: Option<String>,
pub git_url: Option<String>,
pub download_url: Option<String>,
pub type: String,
pub content: String,
pub encoding: String,
pub _links: Box<ContentTreeEntriesInnerLinks>,
pub license: Option<Box<NullableLicenseSimple>>,
}
Expand description
LicenseContent : License Content
Fields§
§name: String
§path: String
§sha: String
§size: i32
§url: String
§html_url: Option<String>
§git_url: Option<String>
§download_url: Option<String>
§type: String
§content: String
§encoding: String
§_links: Box<ContentTreeEntriesInnerLinks>
§license: Option<Box<NullableLicenseSimple>>
Implementations§
Source§impl LicenseContent
impl LicenseContent
Sourcepub fn new(
name: String,
path: String,
sha: String,
size: i32,
url: String,
html_url: Option<String>,
git_url: Option<String>,
download_url: Option<String>,
type: String,
content: String,
encoding: String,
_links: ContentTreeEntriesInnerLinks,
license: Option<NullableLicenseSimple>,
) -> LicenseContent
pub fn new( name: String, path: String, sha: String, size: i32, url: String, html_url: Option<String>, git_url: Option<String>, download_url: Option<String>, type: String, content: String, encoding: String, _links: ContentTreeEntriesInnerLinks, license: Option<NullableLicenseSimple>, ) -> LicenseContent
License Content
Trait Implementations§
Source§impl Clone for LicenseContent
impl Clone for LicenseContent
Source§fn clone(&self) -> LicenseContent
fn clone(&self) -> LicenseContent
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 LicenseContent
impl Debug for LicenseContent
Source§impl Default for LicenseContent
impl Default for LicenseContent
Source§fn default() -> LicenseContent
fn default() -> LicenseContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LicenseContent
impl<'de> Deserialize<'de> for LicenseContent
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 LicenseContent
impl PartialEq for LicenseContent
Source§impl Serialize for LicenseContent
impl Serialize for LicenseContent
impl StructuralPartialEq for LicenseContent
Auto Trait Implementations§
impl Freeze for LicenseContent
impl RefUnwindSafe for LicenseContent
impl Send for LicenseContent
impl Sync for LicenseContent
impl Unpin for LicenseContent
impl UnwindSafe for LicenseContent
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