pub struct Header {
pub format: String,
pub entry_version: u32,
pub key: String,
pub reply_sha256: String,
pub command: String,
pub mode: String,
pub solver: Solver,
pub effort: Option<Effort>,
pub published_unix: u64,
pub signer: String,
pub signature: String,
}Expand description
The header line of a shared entry file.
Fields§
§format: StringAlways FORMAT.
entry_version: u32The entry format version, SHARED_VERSION.
key: StringThe v2 key (ADR 0008), as hex.
reply_sha256: StringSHA-256 of the reply bytes, as hex.
command: StringThe command the reply answers, for example check-sat.
mode: StringThe mode the key was derived under: MODE_DEFAULT.
solver: SolverThe solver that produced the reply.
effort: Option<Effort>Effort for check-sat replies (ADR 0009).
published_unix: u64Unix time the entry was published.
signer: StringThe signer’s key id (PublicKey::id).
signature: StringThe ed25519 signature over Header::signed_bytes, as hex.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Header
impl<'de> Deserialize<'de> for Header
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 Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Forget for Header
impl Freeze for Header
impl Move for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnsafeUnpin for Header
impl UnwindSafe for Header
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