Struct aws_sdk_s3::types::ScanRange
source · #[non_exhaustive]pub struct ScanRange {
pub start: Option<i64>,
pub end: Option<i64>,
}
Expand description
Specifies the byte range of the object to get the records from. A record is processed when its first byte is contained by the range. This parameter is optional, but when specified, it must not be empty. See RFC 2616, Section 14.35.1 about how to specify the start and end of the range.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.start: Option<i64>
Specifies the start of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is 0. If only start
is supplied, it means scan from that point to the end of the file. For example,
means scan from byte 50 until the end of the file.
end: Option<i64>
Specifies the end of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is one less than the size of the object being queried. If only the End parameter is supplied, it is interpreted to mean scan the last N bytes of the file. For example,
means scan the last 50 bytes.
Implementations§
source§impl ScanRange
impl ScanRange
sourcepub fn start(&self) -> Option<i64>
pub fn start(&self) -> Option<i64>
Specifies the start of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is 0. If only start
is supplied, it means scan from that point to the end of the file. For example,
means scan from byte 50 until the end of the file.
sourcepub fn end(&self) -> Option<i64>
pub fn end(&self) -> Option<i64>
Specifies the end of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is one less than the size of the object being queried. If only the End parameter is supplied, it is interpreted to mean scan the last N bytes of the file. For example,
means scan the last 50 bytes.
Trait Implementations§
impl StructuralPartialEq for ScanRange
Auto Trait Implementations§
impl Freeze for ScanRange
impl RefUnwindSafe for ScanRange
impl Send for ScanRange
impl Sync for ScanRange
impl Unpin for ScanRange
impl UnwindSafe for ScanRange
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
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)
clone_to_uninit
)