#[non_exhaustive]pub enum RagFileSource {
GcsSource(Box<GcsSource>),
GoogleDriveSource(Box<GoogleDriveSource>),
DirectUploadSource(Box<DirectUploadSource>),
SlackSource(Box<SlackSource>),
JiraSource(Box<JiraSource>),
SharePointSources(Box<SharePointSources>),
}Expand description
The origin location of the RagFile if it is imported from Google Cloud Storage or Google Drive.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
GcsSource(Box<GcsSource>)
Output only. Google Cloud Storage location of the RagFile. It does not support wildcards in the Cloud Storage uri for now.
GoogleDriveSource(Box<GoogleDriveSource>)
Output only. Google Drive location. Supports importing individual files as well as Google Drive folders.
DirectUploadSource(Box<DirectUploadSource>)
Output only. The RagFile is encapsulated and uploaded in the UploadRagFile request.
SlackSource(Box<SlackSource>)
The RagFile is imported from a Slack channel.
JiraSource(Box<JiraSource>)
The RagFile is imported from a Jira query.
The RagFile is imported from a SharePoint source.
Trait Implementations§
Source§impl Clone for RagFileSource
impl Clone for RagFileSource
Source§fn clone(&self) -> RagFileSource
fn clone(&self) -> RagFileSource
Returns a copy 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 moreSource§impl Debug for RagFileSource
impl Debug for RagFileSource
Source§impl<'de> Deserialize<'de> for RagFileSource
impl<'de> Deserialize<'de> for RagFileSource
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
Source§impl PartialEq for RagFileSource
impl PartialEq for RagFileSource
Source§impl Serialize for RagFileSource
impl Serialize for RagFileSource
impl StructuralPartialEq for RagFileSource
Auto Trait Implementations§
impl Freeze for RagFileSource
impl RefUnwindSafe for RagFileSource
impl Send for RagFileSource
impl Sync for RagFileSource
impl Unpin for RagFileSource
impl UnwindSafe for RagFileSource
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