Struct DataExport
pub struct DataExport {
pub profile: Box<Profile>,
pub questions: Option<Vec<(Question, usize, usize)>>,
pub responses: Option<Vec<(Question, QuestionResponse, usize, usize)>>,
pub comments: Option<Vec<(ResponseComment, usize, usize)>>,
pub chats: Option<Vec<(Chat, Vec<Box<Profile>>)>>,
pub messages: Option<Vec<(Message, Box<Profile>)>>,
pub ipblocks: Option<Vec<IpBlock>>,
pub relationships: Option<Vec<(Box<Profile>, RelationshipStatus)>>,
pub following: Option<Vec<(UserFollow, Box<Profile>, Box<Profile>)>>,
pub followers: Option<Vec<(UserFollow, Box<Profile>, Box<Profile>)>>,
}
Expand description
An export of a user’s entire history
Fields§
§profile: Box<Profile>
The user’s profile
questions: Option<Vec<(Question, usize, usize)>>
All of the user’s Question
s
responses: Option<Vec<(Question, QuestionResponse, usize, usize)>>
All of the user’s QuestionResponse
s
comments: Option<Vec<(ResponseComment, usize, usize)>>
All of the user’s ResponseComment
s
chats: Option<Vec<(Chat, Vec<Box<Profile>>)>>
All of the user’s Chat
s
messages: Option<Vec<(Message, Box<Profile>)>>
All of the user’s Message
s
ipblocks: Option<Vec<IpBlock>>
Get all of the user’s ipblocks
relationships: Option<Vec<(Box<Profile>, RelationshipStatus)>>
Get all of the user’s relationships
following: Option<Vec<(UserFollow, Box<Profile>, Box<Profile>)>>
Get all of the user’s following
followers: Option<Vec<(UserFollow, Box<Profile>, Box<Profile>)>>
Get all of the user’s followers
Trait Implementations§
§impl<'de> Deserialize<'de> for DataExport
impl<'de> Deserialize<'de> for DataExport
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DataExport, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DataExport, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for DataExport
impl Serialize for DataExport
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for DataExport
impl RefUnwindSafe for DataExport
impl Send for DataExport
impl Sync for DataExport
impl Unpin for DataExport
impl UnwindSafe for DataExport
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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