pub struct InsertFileRequest {
pub id: FileId,
pub path: String,
pub public_url: String,
pub mime_type: String,
pub size_bytes: Option<i64>,
pub ai_content: bool,
pub metadata: Value,
pub user_id: Option<UserId>,
pub session_id: Option<SessionId>,
pub trace_id: Option<TraceId>,
pub context_id: Option<ContextId>,
}Fields§
§id: FileId§path: String§public_url: String§mime_type: String§size_bytes: Option<i64>§ai_content: bool§metadata: Value§user_id: Option<UserId>§session_id: Option<SessionId>§trace_id: Option<TraceId>§context_id: Option<ContextId>Implementations§
Source§impl InsertFileRequest
impl InsertFileRequest
pub fn new( id: FileId, path: impl Into<String>, public_url: impl Into<String>, mime_type: impl Into<String>, ) -> Self
pub const fn with_size(self, size: i64) -> Self
pub const fn with_ai_content(self, ai_content: bool) -> Self
pub fn with_metadata(self, metadata: Value) -> Self
pub fn with_user_id(self, user_id: UserId) -> Self
pub fn with_session_id(self, session_id: SessionId) -> Self
pub fn with_trace_id(self, trace_id: TraceId) -> Self
pub fn with_context_id(self, context_id: ContextId) -> Self
Trait Implementations§
Source§impl Clone for InsertFileRequest
impl Clone for InsertFileRequest
Source§fn clone(&self) -> InsertFileRequest
fn clone(&self) -> InsertFileRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InsertFileRequest
impl RefUnwindSafe for InsertFileRequest
impl Send for InsertFileRequest
impl Sync for InsertFileRequest
impl Unpin for InsertFileRequest
impl UnwindSafe for InsertFileRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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