pub struct Company {Show 19 fields
pub id: u64,
pub change_date: Option<Timestamp>,
pub change_date_category: i32,
pub changed_company_id: Option<Box<Company>>,
pub country: i32,
pub created_at: Option<Timestamp>,
pub description: String,
pub developed: Vec<Game>,
pub logo: Option<CompanyLogo>,
pub name: String,
pub parent: Option<Box<Company>>,
pub published: Vec<Game>,
pub slug: String,
pub start_date: Option<Timestamp>,
pub start_date_category: i32,
pub updated_at: Option<Timestamp>,
pub url: String,
pub websites: Vec<CompanyWebsite>,
pub checksum: String,
}
Fields§
§id: u64
§change_date: Option<Timestamp>
§change_date_category: i32
§changed_company_id: Option<Box<Company>>
§country: i32
§created_at: Option<Timestamp>
§description: String
§developed: Vec<Game>
§logo: Option<CompanyLogo>
§name: String
§parent: Option<Box<Company>>
§published: Vec<Game>
§slug: String
§start_date: Option<Timestamp>
§start_date_category: i32
§updated_at: Option<Timestamp>
§url: String
§websites: Vec<CompanyWebsite>
§checksum: String
Implementations§
Source§impl Company
impl Company
Sourcepub fn change_date_category(&self) -> DateFormatChangeDateCategoryEnum
pub fn change_date_category(&self) -> DateFormatChangeDateCategoryEnum
Returns the enum value of change_date_category
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_change_date_category(
&mut self,
value: DateFormatChangeDateCategoryEnum,
)
pub fn set_change_date_category( &mut self, value: DateFormatChangeDateCategoryEnum, )
Sets change_date_category
to the provided enum value.
Sourcepub fn start_date_category(&self) -> DateFormatChangeDateCategoryEnum
pub fn start_date_category(&self) -> DateFormatChangeDateCategoryEnum
Returns the enum value of start_date_category
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_start_date_category(
&mut self,
value: DateFormatChangeDateCategoryEnum,
)
pub fn set_start_date_category( &mut self, value: DateFormatChangeDateCategoryEnum, )
Sets start_date_category
to the provided enum value.
Trait Implementations§
Source§impl Message for Company
impl Message for Company
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.impl StructuralPartialEq for Company
Auto Trait Implementations§
impl Freeze for Company
impl RefUnwindSafe for Company
impl Send for Company
impl Sync for Company
impl Unpin for Company
impl UnwindSafe for Company
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