Struct trezor_client::protos::Features
source · pub struct Features {Show 53 fields
pub vendor: Option<String>,
pub major_version: Option<u32>,
pub minor_version: Option<u32>,
pub patch_version: Option<u32>,
pub bootloader_mode: Option<bool>,
pub device_id: Option<String>,
pub pin_protection: Option<bool>,
pub passphrase_protection: Option<bool>,
pub language: Option<String>,
pub label: Option<String>,
pub initialized: Option<bool>,
pub revision: Option<Vec<u8>>,
pub bootloader_hash: Option<Vec<u8>>,
pub imported: Option<bool>,
pub unlocked: Option<bool>,
pub _passphrase_cached: Option<bool>,
pub firmware_present: Option<bool>,
pub backup_availability: Option<EnumOrUnknown<BackupAvailability>>,
pub flags: Option<u32>,
pub model: Option<String>,
pub fw_major: Option<u32>,
pub fw_minor: Option<u32>,
pub fw_patch: Option<u32>,
pub fw_vendor: Option<String>,
pub unfinished_backup: Option<bool>,
pub no_backup: Option<bool>,
pub recovery_status: Option<EnumOrUnknown<RecoveryStatus>>,
pub capabilities: Vec<EnumOrUnknown<Capability>>,
pub backup_type: Option<EnumOrUnknown<BackupType>>,
pub sd_card_present: Option<bool>,
pub sd_protection: Option<bool>,
pub wipe_code_protection: Option<bool>,
pub session_id: Option<Vec<u8>>,
pub passphrase_always_on_device: Option<bool>,
pub safety_checks: Option<EnumOrUnknown<SafetyCheckLevel>>,
pub auto_lock_delay_ms: Option<u32>,
pub display_rotation: Option<u32>,
pub experimental_features: Option<bool>,
pub busy: Option<bool>,
pub homescreen_format: Option<EnumOrUnknown<HomescreenFormat>>,
pub hide_passphrase_from_host: Option<bool>,
pub internal_model: Option<String>,
pub unit_color: Option<u32>,
pub unit_btconly: Option<bool>,
pub homescreen_width: Option<u32>,
pub homescreen_height: Option<u32>,
pub bootloader_locked: Option<bool>,
pub language_version_matches: Option<bool>,
pub unit_packaging: Option<u32>,
pub haptic_feedback: Option<bool>,
pub recovery_type: Option<EnumOrUnknown<RecoveryType>>,
pub optiga_sec: Option<u32>,
pub special_fields: SpecialFields,
}
Fields§
§vendor: Option<String>
§major_version: Option<u32>
§minor_version: Option<u32>
§patch_version: Option<u32>
§bootloader_mode: Option<bool>
§device_id: Option<String>
§pin_protection: Option<bool>
§passphrase_protection: Option<bool>
§language: Option<String>
§label: Option<String>
§initialized: Option<bool>
§revision: Option<Vec<u8>>
§bootloader_hash: Option<Vec<u8>>
§imported: Option<bool>
§unlocked: Option<bool>
§_passphrase_cached: Option<bool>
§firmware_present: Option<bool>
§backup_availability: Option<EnumOrUnknown<BackupAvailability>>
§flags: Option<u32>
§model: Option<String>
§fw_major: Option<u32>
§fw_minor: Option<u32>
§fw_patch: Option<u32>
§fw_vendor: Option<String>
§unfinished_backup: Option<bool>
§no_backup: Option<bool>
§recovery_status: Option<EnumOrUnknown<RecoveryStatus>>
§capabilities: Vec<EnumOrUnknown<Capability>>
§backup_type: Option<EnumOrUnknown<BackupType>>
§sd_card_present: Option<bool>
§sd_protection: Option<bool>
§wipe_code_protection: Option<bool>
§session_id: Option<Vec<u8>>
§passphrase_always_on_device: Option<bool>
§safety_checks: Option<EnumOrUnknown<SafetyCheckLevel>>
§auto_lock_delay_ms: Option<u32>
§display_rotation: Option<u32>
§experimental_features: Option<bool>
§busy: Option<bool>
§homescreen_format: Option<EnumOrUnknown<HomescreenFormat>>
§hide_passphrase_from_host: Option<bool>
§internal_model: Option<String>
§unit_color: Option<u32>
§unit_btconly: Option<bool>
§homescreen_width: Option<u32>
§homescreen_height: Option<u32>
§bootloader_locked: Option<bool>
§language_version_matches: Option<bool>
§unit_packaging: Option<u32>
§haptic_feedback: Option<bool>
§recovery_type: Option<EnumOrUnknown<RecoveryType>>
§optiga_sec: Option<u32>
§special_fields: SpecialFields
Implementations§
source§impl Features
impl Features
pub fn new() -> Features
pub fn vendor(&self) -> &str
pub fn clear_vendor(&mut self)
pub fn has_vendor(&self) -> bool
pub fn set_vendor(&mut self, v: String)
pub fn mut_vendor(&mut self) -> &mut String
pub fn take_vendor(&mut self) -> String
pub fn major_version(&self) -> u32
pub fn clear_major_version(&mut self)
pub fn has_major_version(&self) -> bool
pub fn set_major_version(&mut self, v: u32)
pub fn minor_version(&self) -> u32
pub fn clear_minor_version(&mut self)
pub fn has_minor_version(&self) -> bool
pub fn set_minor_version(&mut self, v: u32)
pub fn patch_version(&self) -> u32
pub fn clear_patch_version(&mut self)
pub fn has_patch_version(&self) -> bool
pub fn set_patch_version(&mut self, v: u32)
pub fn bootloader_mode(&self) -> bool
pub fn clear_bootloader_mode(&mut self)
pub fn has_bootloader_mode(&self) -> bool
pub fn set_bootloader_mode(&mut self, v: bool)
pub fn device_id(&self) -> &str
pub fn clear_device_id(&mut self)
pub fn has_device_id(&self) -> bool
pub fn set_device_id(&mut self, v: String)
pub fn mut_device_id(&mut self) -> &mut String
pub fn take_device_id(&mut self) -> String
pub fn pin_protection(&self) -> bool
pub fn clear_pin_protection(&mut self)
pub fn has_pin_protection(&self) -> bool
pub fn set_pin_protection(&mut self, v: bool)
pub fn passphrase_protection(&self) -> bool
pub fn clear_passphrase_protection(&mut self)
pub fn has_passphrase_protection(&self) -> bool
pub fn set_passphrase_protection(&mut self, v: bool)
pub fn language(&self) -> &str
pub fn clear_language(&mut self)
pub fn has_language(&self) -> bool
pub fn set_language(&mut self, v: String)
pub fn mut_language(&mut self) -> &mut String
pub fn take_language(&mut self) -> String
pub fn label(&self) -> &str
pub fn clear_label(&mut self)
pub fn has_label(&self) -> bool
pub fn set_label(&mut self, v: String)
pub fn mut_label(&mut self) -> &mut String
pub fn take_label(&mut self) -> String
pub fn initialized(&self) -> bool
pub fn clear_initialized(&mut self)
pub fn has_initialized(&self) -> bool
pub fn set_initialized(&mut self, v: bool)
pub fn revision(&self) -> &[u8] ⓘ
pub fn clear_revision(&mut self)
pub fn has_revision(&self) -> bool
pub fn set_revision(&mut self, v: Vec<u8>)
pub fn mut_revision(&mut self) -> &mut Vec<u8>
pub fn take_revision(&mut self) -> Vec<u8>
pub fn bootloader_hash(&self) -> &[u8] ⓘ
pub fn clear_bootloader_hash(&mut self)
pub fn has_bootloader_hash(&self) -> bool
pub fn set_bootloader_hash(&mut self, v: Vec<u8>)
pub fn mut_bootloader_hash(&mut self) -> &mut Vec<u8>
pub fn take_bootloader_hash(&mut self) -> Vec<u8>
pub fn imported(&self) -> bool
pub fn clear_imported(&mut self)
pub fn has_imported(&self) -> bool
pub fn set_imported(&mut self, v: bool)
pub fn unlocked(&self) -> bool
pub fn clear_unlocked(&mut self)
pub fn has_unlocked(&self) -> bool
pub fn set_unlocked(&mut self, v: bool)
pub fn _passphrase_cached(&self) -> bool
pub fn clear__passphrase_cached(&mut self)
pub fn has__passphrase_cached(&self) -> bool
pub fn set__passphrase_cached(&mut self, v: bool)
pub fn firmware_present(&self) -> bool
pub fn clear_firmware_present(&mut self)
pub fn has_firmware_present(&self) -> bool
pub fn set_firmware_present(&mut self, v: bool)
pub fn backup_availability(&self) -> BackupAvailability
pub fn clear_backup_availability(&mut self)
pub fn has_backup_availability(&self) -> bool
pub fn set_backup_availability(&mut self, v: BackupAvailability)
pub fn flags(&self) -> u32
pub fn clear_flags(&mut self)
pub fn has_flags(&self) -> bool
pub fn set_flags(&mut self, v: u32)
pub fn model(&self) -> &str
pub fn clear_model(&mut self)
pub fn has_model(&self) -> bool
pub fn set_model(&mut self, v: String)
pub fn mut_model(&mut self) -> &mut String
pub fn take_model(&mut self) -> String
pub fn fw_major(&self) -> u32
pub fn clear_fw_major(&mut self)
pub fn has_fw_major(&self) -> bool
pub fn set_fw_major(&mut self, v: u32)
pub fn fw_minor(&self) -> u32
pub fn clear_fw_minor(&mut self)
pub fn has_fw_minor(&self) -> bool
pub fn set_fw_minor(&mut self, v: u32)
pub fn fw_patch(&self) -> u32
pub fn clear_fw_patch(&mut self)
pub fn has_fw_patch(&self) -> bool
pub fn set_fw_patch(&mut self, v: u32)
pub fn fw_vendor(&self) -> &str
pub fn clear_fw_vendor(&mut self)
pub fn has_fw_vendor(&self) -> bool
pub fn set_fw_vendor(&mut self, v: String)
pub fn mut_fw_vendor(&mut self) -> &mut String
pub fn take_fw_vendor(&mut self) -> String
pub fn unfinished_backup(&self) -> bool
pub fn clear_unfinished_backup(&mut self)
pub fn has_unfinished_backup(&self) -> bool
pub fn set_unfinished_backup(&mut self, v: bool)
pub fn no_backup(&self) -> bool
pub fn clear_no_backup(&mut self)
pub fn has_no_backup(&self) -> bool
pub fn set_no_backup(&mut self, v: bool)
pub fn recovery_status(&self) -> RecoveryStatus
pub fn clear_recovery_status(&mut self)
pub fn has_recovery_status(&self) -> bool
pub fn set_recovery_status(&mut self, v: RecoveryStatus)
pub fn backup_type(&self) -> BackupType
pub fn clear_backup_type(&mut self)
pub fn has_backup_type(&self) -> bool
pub fn set_backup_type(&mut self, v: BackupType)
pub fn sd_card_present(&self) -> bool
pub fn clear_sd_card_present(&mut self)
pub fn has_sd_card_present(&self) -> bool
pub fn set_sd_card_present(&mut self, v: bool)
pub fn sd_protection(&self) -> bool
pub fn clear_sd_protection(&mut self)
pub fn has_sd_protection(&self) -> bool
pub fn set_sd_protection(&mut self, v: bool)
pub fn wipe_code_protection(&self) -> bool
pub fn clear_wipe_code_protection(&mut self)
pub fn has_wipe_code_protection(&self) -> bool
pub fn set_wipe_code_protection(&mut self, v: bool)
pub fn session_id(&self) -> &[u8] ⓘ
pub fn clear_session_id(&mut self)
pub fn has_session_id(&self) -> bool
pub fn set_session_id(&mut self, v: Vec<u8>)
pub fn mut_session_id(&mut self) -> &mut Vec<u8>
pub fn take_session_id(&mut self) -> Vec<u8>
pub fn passphrase_always_on_device(&self) -> bool
pub fn clear_passphrase_always_on_device(&mut self)
pub fn has_passphrase_always_on_device(&self) -> bool
pub fn set_passphrase_always_on_device(&mut self, v: bool)
pub fn safety_checks(&self) -> SafetyCheckLevel
pub fn clear_safety_checks(&mut self)
pub fn has_safety_checks(&self) -> bool
pub fn set_safety_checks(&mut self, v: SafetyCheckLevel)
pub fn auto_lock_delay_ms(&self) -> u32
pub fn clear_auto_lock_delay_ms(&mut self)
pub fn has_auto_lock_delay_ms(&self) -> bool
pub fn set_auto_lock_delay_ms(&mut self, v: u32)
pub fn display_rotation(&self) -> u32
pub fn clear_display_rotation(&mut self)
pub fn has_display_rotation(&self) -> bool
pub fn set_display_rotation(&mut self, v: u32)
pub fn experimental_features(&self) -> bool
pub fn clear_experimental_features(&mut self)
pub fn has_experimental_features(&self) -> bool
pub fn set_experimental_features(&mut self, v: bool)
pub fn busy(&self) -> bool
pub fn clear_busy(&mut self)
pub fn has_busy(&self) -> bool
pub fn set_busy(&mut self, v: bool)
pub fn homescreen_format(&self) -> HomescreenFormat
pub fn clear_homescreen_format(&mut self)
pub fn has_homescreen_format(&self) -> bool
pub fn set_homescreen_format(&mut self, v: HomescreenFormat)
pub fn hide_passphrase_from_host(&self) -> bool
pub fn clear_hide_passphrase_from_host(&mut self)
pub fn has_hide_passphrase_from_host(&self) -> bool
pub fn set_hide_passphrase_from_host(&mut self, v: bool)
pub fn internal_model(&self) -> &str
pub fn clear_internal_model(&mut self)
pub fn has_internal_model(&self) -> bool
pub fn set_internal_model(&mut self, v: String)
pub fn mut_internal_model(&mut self) -> &mut String
pub fn take_internal_model(&mut self) -> String
pub fn unit_color(&self) -> u32
pub fn clear_unit_color(&mut self)
pub fn has_unit_color(&self) -> bool
pub fn set_unit_color(&mut self, v: u32)
pub fn unit_btconly(&self) -> bool
pub fn clear_unit_btconly(&mut self)
pub fn has_unit_btconly(&self) -> bool
pub fn set_unit_btconly(&mut self, v: bool)
pub fn homescreen_width(&self) -> u32
pub fn clear_homescreen_width(&mut self)
pub fn has_homescreen_width(&self) -> bool
pub fn set_homescreen_width(&mut self, v: u32)
pub fn homescreen_height(&self) -> u32
pub fn clear_homescreen_height(&mut self)
pub fn has_homescreen_height(&self) -> bool
pub fn set_homescreen_height(&mut self, v: u32)
pub fn bootloader_locked(&self) -> bool
pub fn clear_bootloader_locked(&mut self)
pub fn has_bootloader_locked(&self) -> bool
pub fn set_bootloader_locked(&mut self, v: bool)
pub fn language_version_matches(&self) -> bool
pub fn clear_language_version_matches(&mut self)
pub fn has_language_version_matches(&self) -> bool
pub fn set_language_version_matches(&mut self, v: bool)
pub fn unit_packaging(&self) -> u32
pub fn clear_unit_packaging(&mut self)
pub fn has_unit_packaging(&self) -> bool
pub fn set_unit_packaging(&mut self, v: u32)
pub fn haptic_feedback(&self) -> bool
pub fn clear_haptic_feedback(&mut self)
pub fn has_haptic_feedback(&self) -> bool
pub fn set_haptic_feedback(&mut self, v: bool)
pub fn recovery_type(&self) -> RecoveryType
pub fn clear_recovery_type(&mut self)
pub fn has_recovery_type(&self) -> bool
pub fn set_recovery_type(&mut self, v: RecoveryType)
pub fn optiga_sec(&self) -> u32
pub fn clear_optiga_sec(&mut self)
pub fn has_optiga_sec(&self) -> bool
pub fn set_optiga_sec(&mut self, v: u32)
Trait Implementations§
source§impl Message for Features
impl Message for Features
source§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
True iff all required fields are initialized.
Always returns
true
for protobuf 3.source§fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> Result<()>
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> Result<()>
Update this message object with fields read from given stream.
source§fn compute_size(&self) -> u64
fn compute_size(&self) -> u64
Compute and cache size of this message and all nested messages. Read more
source§fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>,
) -> Result<()>
fn write_to_with_cached_sizes( &self, os: &mut CodedOutputStream<'_>, ) -> Result<()>
Write message to the stream. Read more
source§fn special_fields(&self) -> &SpecialFields
fn special_fields(&self) -> &SpecialFields
Special fields (unknown fields and cached size).
source§fn mut_special_fields(&mut self) -> &mut SpecialFields
fn mut_special_fields(&mut self) -> &mut SpecialFields
Special fields (unknown fields and cached size).
source§fn default_instance() -> &'static Features
fn default_instance() -> &'static Features
Return a pointer to default immutable message with static lifetime. Read more
source§fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, Error>
fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, Error>
Parse message from stream.
source§fn cached_size(&self) -> u32
fn cached_size(&self) -> u32
Get size previously computed by
compute_size
. Read moresource§fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), Error>
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), Error>
Write the message to the stream. Read more
source§fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>,
) -> Result<(), Error>
fn write_length_delimited_to( &self, os: &mut CodedOutputStream<'_>, ) -> Result<(), Error>
Write the message to the stream prepending the message with message length
encoded as varint.
source§fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> Result<(), Error>
fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> Result<(), Error>
Write the message to the vec, prepend the message with message length
encoded as varint.
source§fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
Update this message object with fields read from given stream.
source§fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, Error>
fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, Error>
Parse message from reader.
Parse stops on EOF or when error encountered.
source§fn check_initialized(&self) -> Result<(), Error>
fn check_initialized(&self) -> Result<(), Error>
Check if all required fields of this object are initialized.
source§fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), Error>
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), Error>
Write the message to the writer.
source§fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write,
) -> Result<(), Error>
fn write_length_delimited_to_writer( &self, w: &mut dyn Write, ) -> Result<(), Error>
Write the message to the writer, prepend the message with message length
encoded as varint.
source§fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, Error>
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, Error>
Write the message to the bytes vec, prepend the message with message length
encoded as varint.
source§fn unknown_fields(&self) -> &UnknownFields
fn unknown_fields(&self) -> &UnknownFields
Get a reference to unknown fields.
source§fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
Get a mutable reference to unknown fields.
source§impl MessageFull for Features
impl MessageFull for Features
source§fn descriptor() -> MessageDescriptor
fn descriptor() -> MessageDescriptor
Get message descriptor for message type. Read more
source§fn reflect_eq(&self, other: &Self, mode: &ReflectEqMode) -> bool
fn reflect_eq(&self, other: &Self, mode: &ReflectEqMode) -> bool
Reflective equality. Read more
source§impl PartialEq for Features
impl PartialEq for Features
source§impl ProtobufValue for Features
impl ProtobufValue for Features
§type RuntimeType = RuntimeTypeMessage<Features>
type RuntimeType = RuntimeTypeMessage<Features>
Actual implementation of type properties.
§impl TrezorMessage for Features
impl TrezorMessage for Features
const MESSAGE_TYPE: MessageType = MessageType_Features
source§fn message_type() -> MessageType
fn message_type() -> MessageType
👎Deprecated: Use
MESSAGE_TYPE
insteadimpl StructuralPartialEq for Features
Auto Trait Implementations§
impl !Freeze for Features
impl RefUnwindSafe for Features
impl Send for Features
impl Sync for Features
impl Unpin for Features
impl UnwindSafe for Features
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<M> MessageDyn for Mwhere
M: MessageFull,
impl<M> MessageDyn for Mwhere
M: MessageFull,
source§fn descriptor_dyn(&self) -> MessageDescriptor
fn descriptor_dyn(&self) -> MessageDescriptor
Message descriptor for this message, used for reflection.
source§fn merge_from_dyn(&mut self, is: &mut CodedInputStream<'_>) -> Result<(), Error>
fn merge_from_dyn(&mut self, is: &mut CodedInputStream<'_>) -> Result<(), Error>
Update this message fields with contents of given stream.
source§fn write_to_with_cached_sizes_dyn(
&self,
os: &mut CodedOutputStream<'_>,
) -> Result<(), Error>
fn write_to_with_cached_sizes_dyn( &self, os: &mut CodedOutputStream<'_>, ) -> Result<(), Error>
Write the message.
source§fn compute_size_dyn(&self) -> u64
fn compute_size_dyn(&self) -> u64
Compute (and cache) the message size.
source§fn is_initialized_dyn(&self) -> bool
fn is_initialized_dyn(&self) -> bool
True iff all required fields are initialized.
Always returns
true
for protobuf 3.source§fn special_fields_dyn(&self) -> &SpecialFields
fn special_fields_dyn(&self) -> &SpecialFields
Get a reference to special fields.
source§fn mut_special_fields_dyn(&mut self) -> &mut SpecialFields
fn mut_special_fields_dyn(&mut self) -> &mut SpecialFields
Get a mutable reference to special fields.