pub enum GetRequest {
Normal {
invoke_id_and_priority: u8,
attribute: AttributeDescriptor,
access_selection: Option<AccessSelection>,
},
Next {
invoke_id_and_priority: u8,
block_number: u32,
},
WithList {
invoke_id_and_priority: u8,
attributes: Vec<(AttributeDescriptor, Option<AccessSelection>)>,
},
}Expand description
A GET-Request APDU.
Variants§
Normal
GET-REQUEST-NORMAL: read a single attribute.
Fields
§
attribute: AttributeDescriptorThe attribute to read.
§
access_selection: Option<AccessSelection>Optional selective access applied to the attribute.
Next
GET-REQUEST-NEXT: request the next data block during block transfer.
Fields
WithList
GET-REQUEST-WITH-LIST: read several attributes in one request.
Fields
§
attributes: Vec<(AttributeDescriptor, Option<AccessSelection>)>Each entry is an attribute descriptor with optional selective access.
Implementations§
Source§impl GetRequest
impl GetRequest
Sourcepub fn decode(bytes: &[u8]) -> Result<GetRequest, ServiceError>
pub fn decode(bytes: &[u8]) -> Result<GetRequest, ServiceError>
Decodes a request APDU.
Trait Implementations§
Source§impl Clone for GetRequest
impl Clone for GetRequest
Source§fn clone(&self) -> GetRequest
fn clone(&self) -> GetRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GetRequest
impl Debug for GetRequest
Source§impl PartialEq for GetRequest
impl PartialEq for GetRequest
impl StructuralPartialEq for GetRequest
Auto Trait Implementations§
impl Freeze for GetRequest
impl RefUnwindSafe for GetRequest
impl Send for GetRequest
impl Sync for GetRequest
impl Unpin for GetRequest
impl UnsafeUnpin for GetRequest
impl UnwindSafe for GetRequest
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