TaxonLineageItem
public struct TaxonLineageItem : TaxonRepresenting, Decodable
The TaxonLineageItem
is a value that describes an element from a retrieved
taxon’s lineage.
-
Declaration
Swift
public let identifier: TaxonID
-
Declaration
Swift
public let name: String
-
Declaration
Swift
public let rank: TaxonomicRank?
-
Initializes a new instance using its three defining parameters.
Declaration
Swift
public init(identifier: TaxonID, name: String, rank: TaxonomicRank?)
Parameters
identifier
The internal NCBI identifier for the record.
name
The scientific name of the record.
rank
The rank of the record or
nil
if not set. -
Declaration
Swift
public var hasRank: Bool { get }