pub struct ThreadRetentionPolicy {
pub thread: Option<ThreadRef>,
pub version: Vec<u8>,
pub source: Option<MaterialRetention>,
pub collaboration: Option<MaterialRetention>,
pub evidence: Option<MaterialRetention>,
pub scrubbed_timeline: Option<MaterialRetention>,
pub raw_transcripts: Option<MaterialRetention>,
}Fields§
§thread: Option<ThreadRef>§version: Vec<u8>§source: Option<MaterialRetention>§collaboration: Option<MaterialRetention>§evidence: Option<MaterialRetention>§scrubbed_timeline: Option<MaterialRetention>§raw_transcripts: Option<MaterialRetention>Raw retention requires explicit bounded consent. Runtime secrets are not ordinary Thread material and cannot be enabled by this policy.
Trait Implementations§
Source§impl Clone for ThreadRetentionPolicy
impl Clone for ThreadRetentionPolicy
Source§impl Debug for ThreadRetentionPolicy
impl Debug for ThreadRetentionPolicy
Source§impl Default for ThreadRetentionPolicy
impl Default for ThreadRetentionPolicy
impl Eq for ThreadRetentionPolicy
Source§impl Hash for ThreadRetentionPolicy
impl Hash for ThreadRetentionPolicy
Source§impl Message for ThreadRetentionPolicy
impl Message for ThreadRetentionPolicy
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ThreadRetentionPolicy
impl PartialEq for ThreadRetentionPolicy
impl StructuralPartialEq for ThreadRetentionPolicy
Auto Trait Implementations§
impl Freeze for ThreadRetentionPolicy
impl RefUnwindSafe for ThreadRetentionPolicy
impl Send for ThreadRetentionPolicy
impl Sync for ThreadRetentionPolicy
impl Unpin for ThreadRetentionPolicy
impl UnsafeUnpin for ThreadRetentionPolicy
impl UnwindSafe for ThreadRetentionPolicy
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