pub struct Projects { /* private fields */ }Implementations§
Source§impl Projects
impl Projects
pub fn new(client: &Client) -> Self
pub fn list( &self, search: Option<&str>, limit: Option<i64>, offset: Option<i64>, cursor: Option<&str>, cursor_direction: Option<&str>, order_type: Option<&str>, ) -> Result<ProjectList, AppwriteException>
pub fn create( &self, project_id: &str, name: &str, team_id: &str, description: Option<&str>, logo: Option<&str>, url: Option<&str>, legal_name: Option<&str>, legal_country: Option<&str>, legal_state: Option<&str>, legal_city: Option<&str>, legal_address: Option<&str>, legal_tax_id: Option<&str>, ) -> Result<Project, AppwriteException>
pub fn get(&self, project_id: &str) -> Result<Project, AppwriteException>
pub fn update( &self, project_id: &str, name: &str, description: Option<&str>, logo: Option<&str>, url: Option<&str>, legal_name: Option<&str>, legal_country: Option<&str>, legal_state: Option<&str>, legal_city: Option<&str>, legal_address: Option<&str>, legal_tax_id: Option<&str>, ) -> Result<Project, AppwriteException>
pub fn delete( &self, project_id: &str, password: &str, ) -> Result<Value, AppwriteException>
pub fn update_auth_limit( &self, project_id: &str, limit: i64, ) -> Result<Project, AppwriteException>
pub fn update_auth_status( &self, project_id: &str, method: &str, status: bool, ) -> Result<Project, AppwriteException>
pub fn list_domains( &self, project_id: &str, ) -> Result<DomainList, AppwriteException>
pub fn create_domain( &self, project_id: &str, domain: &str, ) -> Result<Domain, AppwriteException>
pub fn get_domain( &self, project_id: &str, domain_id: &str, ) -> Result<Domain, AppwriteException>
pub fn delete_domain( &self, project_id: &str, domain_id: &str, ) -> Result<Value, AppwriteException>
pub fn update_domain_verification( &self, project_id: &str, domain_id: &str, ) -> Result<Domain, AppwriteException>
pub fn list_keys(&self, project_id: &str) -> Result<KeyList, AppwriteException>
pub fn create_key( &self, project_id: &str, name: &str, scopes: &[&str], ) -> Result<Key, AppwriteException>
pub fn get_key( &self, project_id: &str, key_id: &str, ) -> Result<Key, AppwriteException>
pub fn update_key( &self, project_id: &str, key_id: &str, name: &str, scopes: &[&str], ) -> Result<Key, AppwriteException>
pub fn delete_key( &self, project_id: &str, key_id: &str, ) -> Result<Value, AppwriteException>
pub fn update_o_auth2( &self, project_id: &str, provider: &str, app_id: Option<&str>, secret: Option<&str>, ) -> Result<Project, AppwriteException>
pub fn list_platforms( &self, project_id: &str, ) -> Result<PlatformList, AppwriteException>
pub fn create_platform( &self, project_id: &str, xtype: &str, name: &str, key: Option<&str>, store: Option<&str>, hostname: Option<&str>, ) -> Result<Platform, AppwriteException>
pub fn get_platform( &self, project_id: &str, platform_id: &str, ) -> Result<Platform, AppwriteException>
pub fn update_platform( &self, project_id: &str, platform_id: &str, name: &str, key: Option<&str>, store: Option<&str>, hostname: Option<&str>, ) -> Result<Platform, AppwriteException>
pub fn delete_platform( &self, project_id: &str, platform_id: &str, ) -> Result<Value, AppwriteException>
pub fn update_service_status( &self, project_id: &str, service: &str, status: bool, ) -> Result<Project, AppwriteException>
pub fn get_usage( &self, project_id: &str, range: Option<&str>, ) -> Result<UsageProject, AppwriteException>
pub fn list_webhooks( &self, project_id: &str, ) -> Result<WebhookList, AppwriteException>
pub fn create_webhook( &self, project_id: &str, name: &str, events: &[&str], url: &str, security: bool, http_user: Option<&str>, http_pass: Option<&str>, ) -> Result<Webhook, AppwriteException>
pub fn get_webhook( &self, project_id: &str, webhook_id: &str, ) -> Result<Webhook, AppwriteException>
pub fn update_webhook( &self, project_id: &str, webhook_id: &str, name: &str, events: &[&str], url: &str, security: bool, http_user: Option<&str>, http_pass: Option<&str>, ) -> Result<Webhook, AppwriteException>
pub fn delete_webhook( &self, project_id: &str, webhook_id: &str, ) -> Result<Value, AppwriteException>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Projects
impl !RefUnwindSafe for Projects
impl Send for Projects
impl Sync for Projects
impl Unpin for Projects
impl !UnwindSafe for Projects
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