#[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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
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<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more