pub struct IdlMetadata {
pub name: Option<String>,
pub spec: Option<String>,
pub version: Option<String>,
}
Expand description
Optional metadata about the IDL.
JSON schema
{
"description": "Optional metadata about the IDL.",
"examples": [
{
"name": "system_program",
"spec": "0.1.0",
"version": "0.1.0"
}
],
"type": "object",
"properties": {
"name": {
"description": "The program name.",
"examples": [
"system_program"
],
"type": "string"
},
"spec": {
"description": "The IDL specification version.",
"examples": [
"0.1.0"
],
"type": "string"
},
"version": {
"description": "The program version.",
"examples": [
"0.1.0"
],
"type": "string"
}
}
}
Fields§
§name: Option<String>
The program name.
spec: Option<String>
The IDL specification version.
version: Option<String>
The program version.
Implementations§
Source§impl IdlMetadata
impl IdlMetadata
pub fn builder() -> IdlMetadata
Trait Implementations§
Source§impl Clone for IdlMetadata
impl Clone for IdlMetadata
Source§fn clone(&self) -> IdlMetadata
fn clone(&self) -> IdlMetadata
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 IdlMetadata
impl Debug for IdlMetadata
Source§impl Default for IdlMetadata
impl Default for IdlMetadata
Source§impl<'de> Deserialize<'de> for IdlMetadata
impl<'de> Deserialize<'de> for IdlMetadata
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 From<&IdlMetadata> for IdlMetadata
impl From<&IdlMetadata> for IdlMetadata
Source§fn from(value: &IdlMetadata) -> Self
fn from(value: &IdlMetadata) -> Self
Converts to this type from the input type.
Source§impl From<IdlMetadata> for IdlMetadata
impl From<IdlMetadata> for IdlMetadata
Source§fn from(value: IdlMetadata) -> Self
fn from(value: IdlMetadata) -> Self
Converts to this type from the input type.
Source§impl Serialize for IdlMetadata
impl Serialize for IdlMetadata
Source§impl TryFrom<IdlMetadata> for IdlMetadata
impl TryFrom<IdlMetadata> for IdlMetadata
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: IdlMetadata) -> Result<Self, ConversionError>
fn try_from(value: IdlMetadata) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for IdlMetadata
impl RefUnwindSafe for IdlMetadata
impl Send for IdlMetadata
impl Sync for IdlMetadata
impl Unpin for IdlMetadata
impl UnwindSafe for IdlMetadata
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