Skip to main content

Specification

Struct Specification 

Source
pub struct Specification<T = Metadata> {
Show 26 fields pub authors: Vec<String>, pub bindir: Option<String>, pub cert_chain: Option<Vec<String>>, pub dependencies: Option<Vec<Dependency>>, pub description: Option<String>, pub email: Vec<String>, pub executables: Option<Vec<String>>, pub extensions: Option<Vec<String>>, pub extensions_dir: Option<String>, pub extra_rdoc_files: Option<Vec<String>>, pub files: Vec<String>, pub homepage: Option<String>, pub licenses: Vec<String>, pub metadata: Option<T>, pub name: String, pub platform: Option<Platform>, pub post_install_message: Option<String>, pub rdoc_options: Option<Vec<String>>, pub require_paths: Option<Vec<String>>, pub required_ruby_version: Option<Requirement>, pub required_rubygems_version: Option<Requirement>, pub requirements: Option<Vec<String>>, pub rubygems_version: Option<String>, pub signing_key: Option<String>, pub summary: String, pub version: Version,
}
Expand description

The package information for a gem, typically defined in a .gemspec file.

This is the tag !ruby/object:Gem::Specification in YAML.

Note that we (pedantically) distinguish between Option<Vec<T> and Vec<T> so as to indicate whether the property was unset or set to empty the input specification file.

See: https://guides.rubygems.org/specification-reference/

Fields§

§authors: Vec<String>§bindir: Option<String>§cert_chain: Option<Vec<String>>§dependencies: Option<Vec<Dependency>>§description: Option<String>§email: Vec<String>§executables: Option<Vec<String>>§extensions: Option<Vec<String>>§extensions_dir: Option<String>§extra_rdoc_files: Option<Vec<String>>§files: Vec<String>§homepage: Option<String>§licenses: Vec<String>§metadata: Option<T>§name: String§platform: Option<Platform>§post_install_message: Option<String>§rdoc_options: Option<Vec<String>>§require_paths: Option<Vec<String>>§required_ruby_version: Option<Requirement>§required_rubygems_version: Option<Requirement>§requirements: Option<Vec<String>>§rubygems_version: Option<String>§signing_key: Option<String>§summary: String§version: Version

Trait Implementations§

Source§

impl<T: Clone> Clone for Specification<T>

Source§

fn clone(&self) -> Specification<T>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug> Debug for Specification<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: Default> Default for Specification<T>

Source§

fn default() -> Specification<T>

Returns the “default value” for a type. Read more
Source§

impl<'de, T> Deserialize<'de> for Specification<T>
where Specification<T>: Default, T: Deserialize<'de>,

Source§

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<T: Eq> Eq for Specification<T>

Source§

impl<T: Hash> Hash for Specification<T>

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<T: PartialEq> PartialEq for Specification<T>

Source§

fn eq(&self, other: &Specification<T>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<T> Serialize for Specification<T>
where T: Serialize,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<T: PartialEq> StructuralPartialEq for Specification<T>

Auto Trait Implementations§

§

impl<T> Freeze for Specification<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for Specification<T>
where T: RefUnwindSafe,

§

impl<T> Send for Specification<T>
where T: Send,

§

impl<T> Sync for Specification<T>
where T: Sync,

§

impl<T> Unpin for Specification<T>
where T: Unpin,

§

impl<T> UnsafeUnpin for Specification<T>
where T: UnsafeUnpin,

§

impl<T> UnwindSafe for Specification<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Hash for T
where T: Hash,

Source§

fn hash(&self) -> i64

Source§

impl<T> Inspect for T
where T: Debug,

Source§

fn inspect(&self) -> String

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.