pub struct Credit {
pub language: String,
pub value: String,
pub user: Option<Uuid>,
pub type: CreditType,
}Fields§
§language: StringThe language used when describing the credits. The language field is included so that CVE Records can support translations. The value must be a BCP 47 language code.
value: String§user: Option<Uuid>UUID of the user being credited if present in the CVE User Registry (optional). This UUID can be used to lookup the user record in the user registry service.
type: CreditTypeType or role of the entity being credited (optional).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Credit
impl<'de> Deserialize<'de> for Credit
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
impl Eq for Credit
impl StructuralPartialEq for Credit
Auto Trait Implementations§
impl Freeze for Credit
impl RefUnwindSafe for Credit
impl Send for Credit
impl Sync for Credit
impl Unpin for Credit
impl UnwindSafe for Credit
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