pub struct ContentChunkV1 {
pub protocol_version: u16,
pub request_id: ScopedReferenceV1,
pub source_content_id: ScopedContentIdV1,
pub chunk_id: Sha256Digest,
pub start_byte: u64,
pub end_byte: u64,
pub byte_count: u64,
pub source_version: Sha256Digest,
pub content: String,
pub payload_digest: Sha256Digest,
pub expires_at: UtcTimestamp,
}Fields§
§protocol_version: u16§request_id: ScopedReferenceV1§source_content_id: ScopedContentIdV1§chunk_id: Sha256Digest§start_byte: u64§end_byte: u64§byte_count: u64§source_version: Sha256Digest§content: String§payload_digest: Sha256Digest§expires_at: UtcTimestampImplementations§
Source§impl ContentChunkV1
impl ContentChunkV1
pub fn validate_at(&self, now: &UtcTimestamp) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for ContentChunkV1
impl Clone for ContentChunkV1
Source§impl Debug for ContentChunkV1
impl Debug for ContentChunkV1
Source§impl<'de> Deserialize<'de> for ContentChunkV1
impl<'de> Deserialize<'de> for ContentChunkV1
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 ContentChunkV1
Source§impl PartialEq for ContentChunkV1
impl PartialEq for ContentChunkV1
Source§impl Serialize for ContentChunkV1
impl Serialize for ContentChunkV1
impl StructuralPartialEq for ContentChunkV1
Auto Trait Implementations§
impl Forget for ContentChunkV1
impl Freeze for ContentChunkV1
impl Move for ContentChunkV1
impl RefUnwindSafe for ContentChunkV1
impl Send for ContentChunkV1
impl Sync for ContentChunkV1
impl Unpin for ContentChunkV1
impl UnsafeUnpin for ContentChunkV1
impl UnwindSafe for ContentChunkV1
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