Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

1 linha
4.5 KiB

  1. {"primaryContentSections":[{"declarations":[{"platforms":["iOS"],"languages":["swift"],"tokens":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"encode","kind":"identifier"},{"kind":"text","text":"("},{"text":"to","kind":"externalParam"},{"kind":"text","text":" "},{"kind":"internalParam","text":"encoder"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:s7EncoderP","kind":"typeIdentifier","text":"Encoder"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"name":"encoder","content":[{"inlineContent":[{"type":"text","text":"The encoder to use for encoding the "},{"type":"codeVoice","code":"PilotTank"},{"type":"text","text":" instance."}],"type":"paragraph"}]}]},{"kind":"content","content":[{"text":"Discussion","level":2,"type":"heading","anchor":"discussion"},{"type":"paragraph","inlineContent":[{"text":"This method is required by the ","type":"text"},{"code":"Codable","type":"codeVoice"},{"type":"text","text":" protocol and encodes the"},{"type":"text","text":" "},{"type":"text","text":"properties of the "},{"code":"PilotTank","type":"codeVoice"},{"type":"text","text":" instance using the provided "},{"type":"codeVoice","code":"Encoder"},{"type":"text","text":" instance."}]},{"content":[{"inlineContent":[{"text":"An error if any values are invalid for the given keys.","type":"text"}],"type":"paragraph"}],"name":"Throws","type":"aside","style":"note"}]}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/PilotTank\/encode(to:)"},"variants":[{"paths":["\/documentation\/fueling\/pilottank\/encode(to:)"],"traits":[{"interfaceLanguage":"swift"}]}],"kind":"symbol","metadata":{"role":"symbol","externalID":"s:7Fueling9PilotTankC6encode2toys7Encoder_p_tKF","symbolKind":"method","modules":[{"name":"Fueling"}],"title":"encode(to:)","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"encode","kind":"identifier"},{"text":"(","kind":"text"},{"text":"to","kind":"externalParam"},{"kind":"text","text":": "},{"text":"Encoder","kind":"typeIdentifier","preciseIdentifier":"s:s7EncoderP"},{"text":") ","kind":"text"},{"text":"throws","kind":"keyword"}],"roleHeading":"Instance Method"},"abstract":[{"text":"Encodes the ","type":"text"},{"code":"PilotTank","type":"codeVoice"},{"type":"text","text":" instance to an encoder."}],"hierarchy":{"paths":[["doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling","doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/PilotTank"]]},"schemaVersion":{"patch":0,"minor":3,"major":0},"sections":[],"references":{"doc://rpm.com.production.Scanner/documentation/Fueling/PilotTank/encode(to:)":{"role":"symbol","identifier":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/PilotTank\/encode(to:)","abstract":[{"type":"text","text":"Encodes the "},{"type":"codeVoice","code":"PilotTank"},{"text":" instance to an encoder.","type":"text"}],"title":"encode(to:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"encode"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"to"},{"text":": ","kind":"text"},{"text":"Encoder","preciseIdentifier":"s:s7EncoderP","kind":"typeIdentifier"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"}],"type":"topic","kind":"symbol","url":"\/documentation\/fueling\/pilottank\/encode(to:)"},"doc://rpm.com.production.Scanner/documentation/Fueling":{"kind":"symbol","url":"\/documentation\/fueling","title":"Fueling","identifier":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling","abstract":[{"type":"text","text":"The Scanner app is designed to facilitate secure and efficient fuel management operations, primarily focusing on user authentication, fuel data collection, and network communication. The app includes several key features to ensure seamless and reliable interactions between users and the backend systems, leveraging technologies like WebSockets, Core Data, and biometric authentication."}],"type":"topic","role":"collection"},"doc://rpm.com.production.Scanner/documentation/Fueling/PilotTank":{"url":"\/documentation\/fueling\/pilottank","title":"PilotTank","identifier":"doc:\/\/rpm.com.production.Scanner\/documentation\/Fueling\/PilotTank","role":"symbol","abstract":[{"text":"A class representing a pilot tank.","type":"text"}],"navigatorTitle":[{"text":"PilotTank","kind":"identifier"}],"fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"PilotTank"}],"type":"topic","kind":"symbol"}}}